Update server/Database.js

This commit is contained in:
advplyr 2023-09-22 16:14:12 -05:00 committed by GitHub
parent b64ecc7c6f
commit 1ab34fa77f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,8 +167,8 @@ class Database {
async connect() { async connect() {
Logger.info(`[Database] Initializing db at "${this.dbPath}"`) Logger.info(`[Database] Initializing db at "${this.dbPath}"`)
let logging = false; let logging = false
let benchmark = false; let benchmark = false
if (process.env.QUERY_LOGGING === "log") { if (process.env.QUERY_LOGGING === "log") {
// Setting QUERY_LOGGING=log will log all Sequelize queries before they run // Setting QUERY_LOGGING=log will log all Sequelize queries before they run
Logger.info(`[Database] Query logging enabled`) Logger.info(`[Database] Query logging enabled`)