diff --git a/src/sys/db.ts b/src/sys/db.ts index a682c24..d863728 100644 --- a/src/sys/db.ts +++ b/src/sys/db.ts @@ -2,7 +2,7 @@ import { BIGINT, BOOL, DB, INT, onAction, SMALLINT, TEXT, TINYINT, VARCHAR } fro import { oConf } from "./config.js" import { PERMISSIONS } from "../server/permissions.js" import nMan from "nman"; -import { log, error } from "./log.js"; +import { log, error, debug } from "./log.js"; export const db = new DB(); @@ -22,6 +22,7 @@ export const connectToDB = async () => { log("Database", "Connected to Database!"); } catch (e) { error("Database", "Error while conncting to Database!"); + debug("Database", "Error:", e); throw e; } };