Fix database benchmark in prod mode

pull/97/head
Chocobozzz 2017-10-10 09:00:50 +02:00
parent 974f7c68f5
commit 769d332177
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View 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'
}