From 71762ef8371c45b8cb9a61f09c12ea531743c632 Mon Sep 17 00:00:00 2001 From: Selfhost Alt Date: Thu, 14 Sep 2023 23:01:40 -0700 Subject: [PATCH] Newline before printing query --- server/Database.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/Database.js b/server/Database.js index 09f6dfc7..1d7ae9ab 100644 --- a/server/Database.js +++ b/server/Database.js @@ -172,11 +172,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: ${query}`) + logging = (query) => Logger.dev(`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: ${query}`) + logging = (query, time) => Logger.dev(`Ran the following query in ${time}ms:\n ${query}`) benchmark = true; }