summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel <34555296+Flam3rboy@users.noreply.github.com>2023-03-18 05:11:33 +0100
committerSamuel <34555296+Flam3rboy@users.noreply.github.com>2023-03-18 05:11:33 +0100
commit3dc0e68534f9c30f29f5b7e039f439706edf0a16 (patch)
tree7b36343fc8fc18653bee033276289770b69d7dca
parentfix: local cache (diff)
downloadserver-3dc0e68534f9c30f29f5b7e039f439706edf0a16.tar.xz
feat: add DB_LOGGING env dev/samuel
-rw-r--r--src/util/util/Database.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util/Database.ts b/src/util/util/Database.ts
index 5a5a4b75..122a8793 100644
--- a/src/util/util/Database.ts
+++ b/src/util/util/Database.ts
@@ -51,7 +51,7 @@ const DataSourceOptions = new DataSource({
 	database: isSqlite ? dbConnectionString : undefined,
 	entities: [path.join(__dirname, "..", "entities", "*.js")],
 	synchronize: !!process.env.DB_SYNC,
-	logging: false,
+	logging: process.env["DB_LOGGING"] === "true",
 	bigNumberStrings: false,
 	supportBigNumbers: true,
 	name: "default",