projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
974f7c6
)
Fix database benchmark in prod mode
author
Chocobozzz
<florian.bigard@gmail.com>
Tue, 10 Oct 2017 07:00:50 +0000
(09:00 +0200)
committer
Chocobozzz
<florian.bigard@gmail.com>
Tue, 10 Oct 2017 07:00:50 +0000
(09:00 +0200)
server/initializers/database.ts
patch
|
blob
|
history
diff --git
a/server/initializers/database.ts
b/server/initializers/database.ts
index d59fd365573513243de7dc86e12c063d747db537..c5a3853613a4518ce875ca9f2801ea2bd797d534 100644
(file)
--- 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'
}