Fix broadcast message log level

pull/4048/head
Chocobozzz 2021-05-25 10:08:29 +02:00
parent fa263eeff7
commit 31a911190b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
5 changed files with 6 additions and 6 deletions

View File

@ -96,7 +96,7 @@ storage:
client_overrides: 'storage/client-overrides/'
log:
level: 'info' # debug/info/warning/error
level: 'info' # 'debug' | 'info' | 'warn' | 'error'
rotation:
enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate
maxFileSize: 12MB
@ -474,7 +474,7 @@ theme:
broadcast_message:
enabled: false
message: '' # Support markdown
level: 'info' # 'info' | 'warn' | 'error'
level: 'info' # 'info' | 'warning' | 'error'
dismissable: false
search:

View File

@ -94,7 +94,7 @@ storage:
client_overrides: '/var/www/peertube/storage/client-overrides/'
log:
level: 'info' # debug/info/warning/error
level: 'info' # 'debug' | 'info' | 'warn' | 'error'
rotation:
enabled : true # Enabled by default, if disabled make sure that 'storage.logs' is pointing to a folder handled by logrotate
maxFileSize: 12MB

View File

@ -132,7 +132,7 @@ function checkConfig () {
// Broadcast message
if (CONFIG.BROADCAST_MESSAGE.ENABLED) {
const currentLevel = CONFIG.BROADCAST_MESSAGE.LEVEL
const available = [ 'info', 'warn', 'error' ]
const available = [ 'info', 'warning', 'error' ]
if (available.includes(currentLevel) === false) {
return 'Broadcast message level should be ' + available.join(' or ') + ' instead of ' + currentLevel

View File

@ -284,7 +284,7 @@ describe('Test plugins', function () {
})
it('Should update the plugin and the theme', async function () {
this.timeout(30000)
this.timeout(90000)
// Wait the scheduler that get the latest plugins versions
await wait(6000)

View File

@ -62,7 +62,7 @@ storage:
client_overrides: '../data/client-overrides/'
log:
level: 'info' # debug/info/warn/error
level: 'info' # 'debug' | 'info' | 'warn' | 'error'
tracker:
enabled: true