ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix broadcast message log level
Chocobozzz008af5c9bb26
diff --git a/config/default.yaml b/config/default.yamlindex 370a77925f..9b90bacfcf 100644--- a/config/default.yaml+++ b/config/default.yaml@@ -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 logrotatemaxFileSize: 12MB@@ -474,7 +474,7 @@ theme:broadcast_message:enabled: falsemessage: '' # Support markdown- level: 'info' # 'info' | 'warn' | 'error'+ level: 'info' # 'info' | 'warning' | 'error'dismissable: falsesearch:diff --git a/config/production.yaml.example b/config/production.yaml.exampleindex fed6b45ca8..47ef47279b 100644--- a/config/production.yaml.example+++ b/config/production.yaml.example@@ -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 logrotatemaxFileSize: 12MBdiff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.tsindex 5fd1af82f8..a93c8b7fd3 100644--- a/server/initializers/checker-after-init.ts+++ b/server/initializers/checker-after-init.ts@@ -132,7 +132,7 @@ function checkConfig () {// Broadcast messageif (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 ' + currentLeveldiff --git a/server/tests/api/server/plugins.ts b/server/tests/api/server/plugins.tsindex 1c6eabe6d6..f4190c352c 100644--- a/server/tests/api/server/plugins.ts+++ b/server/tests/api/server/plugins.ts@@ -290,7 +290,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 versionsawait wait(6000)diff --git a/support/docker/production/config/production.yaml b/support/docker/production/config/production.yamlindex 688f88eddd..5cb39e2688 100644--- a/support/docker/production/config/production.yaml+++ b/support/docker/production/config/production.yaml@@ -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