aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-14 14:17:53 +0200
committerChocobozzz <me@florianbigard.com>2021-05-14 14:17:53 +0200
commitcb4bab61c19f2be7858f9cc6e8e234f04b1d504f (patch)
tree0fe772bd879c52b587cfc8a0333bea5301cbfea1 /server
parentdb0159c7f20633f9b472b77f5798849fdbdbe4b8 (diff)
downloadPeerTube-cb4bab61c19f2be7858f9cc6e8e234f04b1d504f.tar.gz
PeerTube-cb4bab61c19f2be7858f9cc6e8e234f04b1d504f.tar.zst
PeerTube-cb4bab61c19f2be7858f9cc6e8e234f04b1d504f.zip
Fix logger warning level
Diffstat (limited to 'server')
-rw-r--r--server/initializers/checker-after-init.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts
index a93c8b7fd..5fd1af82f 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', 'warning', 'error' ] 135 const available = [ 'info', 'warn', '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