From 1b1035bde693c57858adee2ef541d0c48783ffa4 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Wed, 8 Mar 2023 10:21:14 +0100 Subject: [PATCH] log error --- src/sys/db.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } };