log error
This commit is contained in:
parent
fcaa036fff
commit
1b1035bde6
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue