diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-25 10:08:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-25 11:35:29 +0200 |
commit | 31a911190b27d93f6324da3d826f96c7fbc5deb6 (patch) | |
tree | eaf00fb4ca0f4d1b38fed3dcff2969d5b3bf05ea /server/initializers/checker-after-init.ts | |
parent | fa263eeff79b1d80789a87a5af45ebe4c303025d (diff) | |
download | PeerTube-31a911190b27d93f6324da3d826f96c7fbc5deb6.tar.gz PeerTube-31a911190b27d93f6324da3d826f96c7fbc5deb6.tar.zst PeerTube-31a911190b27d93f6324da3d826f96c7fbc5deb6.zip |
Fix broadcast message log level
Diffstat (limited to 'server/initializers/checker-after-init.ts')
-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 d75c0af04..911734fa0 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 |