From 3dc0e68534f9c30f29f5b7e039f439706edf0a16 Mon Sep 17 00:00:00 2001 From: Samuel <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 18 Mar 2023 05:11:33 +0100 Subject: feat: add DB_LOGGING env --- src/util/util/Database.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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", -- cgit 1.4.1