aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-10 09:00:50 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-10 09:00:50 +0200
commit769d332177a5b02d5c2ffc134687d3b4ed65bae9 (patch)
treee66778fdf8b7716401992c817debc71363ebeb31
parent974f7c68f5ba98b748ea5ee6a59f516efff9bdbf (diff)
downloadPeerTube-769d332177a5b02d5c2ffc134687d3b4ed65bae9.tar.gz
PeerTube-769d332177a5b02d5c2ffc134687d3b4ed65bae9.tar.zst
PeerTube-769d332177a5b02d5c2ffc134687d3b4ed65bae9.zip
Fix database benchmark in prod mode
-rw-r--r--server/initializers/database.ts2
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