mirror of https://github.com/Chocobozzz/PeerTube
Fix database benchmark in prod mode
parent
974f7c68f5
commit
769d332177
|
@ -64,7 +64,7 @@ const sequelize = new Sequelize(dbname, username, password, {
|
||||||
|
|
||||||
logging: (message: string, benchmark: number) => {
|
logging: (message: string, benchmark: number) => {
|
||||||
let newMessage = message
|
let newMessage = message
|
||||||
if (benchmark !== undefined) {
|
if (isTestInstance() === true && benchmark !== undefined) {
|
||||||
newMessage += ' | ' + benchmark + 'ms'
|
newMessage += ' | ' + benchmark + 'ms'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue