Merge branch 'advplyr:master' into dewyer/add-custom-metadata-provider

This commit is contained in:
FlyinPancake 2024-01-13 01:08:23 +01:00 committed by GitHub
commit 6ef4944d89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 764 additions and 309 deletions

View file

@ -182,11 +182,11 @@ class Database {
if (process.env.QUERY_LOGGING === "log") {
// Setting QUERY_LOGGING=log will log all Sequelize queries before they run
Logger.info(`[Database] Query logging enabled`)
logging = (query) => Logger.dev(`Running the following query:\n ${query}`)
logging = (query) => Logger.debug(`Running the following query:\n ${query}`)
} else if (process.env.QUERY_LOGGING === "benchmark") {
// Setting QUERY_LOGGING=benchmark will log all Sequelize queries and their execution times, after they run
Logger.info(`[Database] Query benchmarking enabled"`)
logging = (query, time) => Logger.dev(`Ran the following query in ${time}ms:\n ${query}`)
logging = (query, time) => Logger.debug(`Ran the following query in ${time}ms:\n ${query}`)
benchmark = true
}