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 | |
parent | fa263eeff79b1d80789a87a5af45ebe4c303025d (diff) | |
download | PeerTube-31a911190b27d93f6324da3d826f96c7fbc5deb6.tar.gz PeerTube-31a911190b27d93f6324da3d826f96c7fbc5deb6.tar.zst PeerTube-31a911190b27d93f6324da3d826f96c7fbc5deb6.zip |
Fix broadcast message log level
Diffstat (limited to 'server')
-rw-r--r-- | server/initializers/checker-after-init.ts | 2 | ||||
-rw-r--r-- | server/tests/api/server/plugins.ts | 2 |
2 files changed, 2 insertions, 2 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 |
diff --git a/server/tests/api/server/plugins.ts b/server/tests/api/server/plugins.ts index 3c09acc9a..6046ab97e 100644 --- a/server/tests/api/server/plugins.ts +++ b/server/tests/api/server/plugins.ts | |||
@@ -284,7 +284,7 @@ describe('Test plugins', function () { | |||
284 | }) | 284 | }) |
285 | 285 | ||
286 | it('Should update the plugin and the theme', async function () { | 286 | it('Should update the plugin and the theme', async function () { |
287 | this.timeout(30000) | 287 | this.timeout(90000) |
288 | 288 | ||
289 | // Wait the scheduler that get the latest plugins versions | 289 | // Wait the scheduler that get the latest plugins versions |
290 | await wait(6000) | 290 | await wait(6000) |