Fix database benchmark in prod mode
authorChocobozzz <florian.bigard@gmail.com>
Tue, 10 Oct 2017 07:00:50 +0000 (09:00 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Tue, 10 Oct 2017 07:00:50 +0000 (09:00 +0200)
server/initializers/database.ts

index d59fd365573513243de7dc86e12c063d747db537..c5a3853613a4518ce875ca9f2801ea2bd797d534 100644 (file)
@@ -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'
     }