diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-25 10:08:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-25 11:34:43 +0200 |
commit | 008af5c9bb26b6a28db604d10356b4272d9c0432 (patch) | |
tree | 1f5776b47b597c0db1ede8829022bafad2eb01bd /server/initializers | |
parent | 8bb6e70be3c7199a0503aca302b4b32317520db3 (diff) | |
download | PeerTube-008af5c9bb26b6a28db604d10356b4272d9c0432.tar.gz PeerTube-008af5c9bb26b6a28db604d10356b4272d9c0432.tar.zst PeerTube-008af5c9bb26b6a28db604d10356b4272d9c0432.zip |
Fix broadcast message log level
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/checker-after-init.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts index 5fd1af82f..a93c8b7fd 100644 --- a/server/initializers/checker-after-init.ts +++ b/server/initializers/checker-after-init.ts | |||
@@ -132,7 +132,7 @@ function checkConfig () { | |||
132 | // Broadcast message | 132 | // Broadcast message |
133 | if (CONFIG.BROADCAST_MESSAGE.ENABLED) { | 133 | if (CONFIG.BROADCAST_MESSAGE.ENABLED) { |
134 | const currentLevel = CONFIG.BROADCAST_MESSAGE.LEVEL | 134 | const currentLevel = CONFIG.BROADCAST_MESSAGE.LEVEL |
135 | const available = [ 'info', 'warn', 'error' ] | 135 | const available = [ 'info', 'warning', 'error' ] |
136 | 136 | ||
137 | if (available.includes(currentLevel) === false) { | 137 | if (available.includes(currentLevel) === false) { |
138 | return 'Broadcast message level should be ' + available.join(' or ') + ' instead of ' + currentLevel | 138 | return 'Broadcast message level should be ' + available.join(' or ') + ' instead of ' + currentLevel |