diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-10 09:00:50 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-10 09:00:50 +0200 |
commit | 769d332177a5b02d5c2ffc134687d3b4ed65bae9 (patch) | |
tree | e66778fdf8b7716401992c817debc71363ebeb31 /server/initializers/database.ts | |
parent | 974f7c68f5ba98b748ea5ee6a59f516efff9bdbf (diff) | |
download | PeerTube-769d332177a5b02d5c2ffc134687d3b4ed65bae9.tar.gz PeerTube-769d332177a5b02d5c2ffc134687d3b4ed65bae9.tar.zst PeerTube-769d332177a5b02d5c2ffc134687d3b4ed65bae9.zip |
Fix database benchmark in prod mode
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r-- | server/initializers/database.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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, { | |||
64 | 64 | ||
65 | logging: (message: string, benchmark: number) => { | 65 | logging: (message: string, benchmark: number) => { |
66 | let newMessage = message | 66 | let newMessage = message |
67 | if (benchmark !== undefined) { | 67 | if (isTestInstance() === true && benchmark !== undefined) { |
68 | newMessage += ' | ' + benchmark + 'ms' | 68 | newMessage += ' | ' + benchmark + 'ms' |
69 | } | 69 | } |
70 | 70 | ||