From 769d332177a5b02d5c2ffc134687d3b4ed65bae9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 10 Oct 2017 09:00:50 +0200 Subject: [PATCH] Fix database benchmark in prod mode --- server/initializers/database.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/initializers/database.ts b/server/initializers/database.ts index d59fd3655..c5a385361 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts @@ -64,7 +64,7 @@ const sequelize = new Sequelize(dbname, username, password, { logging: (message: string, benchmark: number) => { let newMessage = message - if (benchmark !== undefined) { + if (isTestInstance() === true && benchmark !== undefined) { newMessage += ' | ' + benchmark + 'ms' } -- 2.25.1