diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-29 11:34:44 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-29 11:34:44 +0100 |
commit | 165cdc75bf1942ed687f78094c2bd366839a7c99 (patch) | |
tree | 4b174114bf175603202c3672c5dc04c22582701d /server/initializers/database.ts | |
parent | 14063e965672ed724b7bfea6686acc14923e07a7 (diff) | |
download | PeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.tar.gz PeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.tar.zst PeerTube-165cdc75bf1942ed687f78094c2bd366839a7c99.zip |
Fix well known and json parser with mastodon
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r-- | server/initializers/database.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 9b9a81e26..90dbba5b9 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -66,6 +66,8 @@ const sequelize = new Sequelize(dbname, username, password, { | |||
66 | operatorsAliases: false, | 66 | operatorsAliases: false, |
67 | 67 | ||
68 | logging: (message: string, benchmark: number) => { | 68 | logging: (message: string, benchmark: number) => { |
69 | if (process.env.NODE_DB_LOG === 'false') return | ||
70 | |||
69 | let newMessage = message | 71 | let newMessage = message |
70 | if (isTestInstance() === true && benchmark !== undefined) { | 72 | if (isTestInstance() === true && benchmark !== undefined) { |
71 | newMessage += ' | ' + benchmark + 'ms' | 73 | newMessage += ' | ' + benchmark + 'ms' |