diff options
author | Samuel <34555296+Flam3rboy@users.noreply.github.com> | 2023-03-18 05:11:33 +0100 |
---|---|---|
committer | Samuel <34555296+Flam3rboy@users.noreply.github.com> | 2023-03-18 05:11:33 +0100 |
commit | 3dc0e68534f9c30f29f5b7e039f439706edf0a16 (patch) | |
tree | 7b36343fc8fc18653bee033276289770b69d7dca | |
parent | fix: local cache (diff) | |
download | server-3dc0e68534f9c30f29f5b7e039f439706edf0a16.tar.xz |
feat: add DB_LOGGING env dev/samuel
-rw-r--r-- | src/util/util/Database.ts | 2 |
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", |