From 4fbc96ec02cc07b2bc167e18afeeabaf30718f52 Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Tue, 14 May 2024 08:39:41 -0600 Subject: [PATCH] add WARN to log constants (#26868) * add WARN to log constants * i18n-extract * i18n-extract --- .../components/admin_console/admin_definition_constants.tsx | 4 ++++ webapp/channels/src/i18n/en.json | 1 + 2 files changed, 5 insertions(+) diff --git a/webapp/channels/src/components/admin_console/admin_definition_constants.tsx b/webapp/channels/src/components/admin_console/admin_definition_constants.tsx index 816b0c37a4..e75c9e81f6 100644 --- a/webapp/channels/src/components/admin_console/admin_definition_constants.tsx +++ b/webapp/channels/src/components/admin_console/admin_definition_constants.tsx @@ -166,4 +166,8 @@ export const LOG_LEVEL_OPTIONS = [ value: 'ERROR', display_name: defineMessage({id: 'admin.log.levelOptions.ERROR', defaultMessage: 'ERROR'}), }, + { + value: 'WARN', + display_name: defineMessage({id: 'admin.log.levelOptions.WARN', defaultMessage: 'WARN'}), + }, ]; diff --git a/webapp/channels/src/i18n/en.json b/webapp/channels/src/i18n/en.json index 671eb32382..9972eefa55 100644 --- a/webapp/channels/src/i18n/en.json +++ b/webapp/channels/src/i18n/en.json @@ -1443,6 +1443,7 @@ "admin.log.levelOptions.DEBUG": "DEBUG", "admin.log.levelOptions.ERROR": "ERROR", "admin.log.levelOptions.INFO": "INFO", + "admin.log.levelOptions.WARN": "WARN", "admin.log.levelTitle": "Console Log Level:", "admin.log.locationDescription": "The location of the log files. If blank, they are stored in the ./logs directory. The path that you set must exist and Mattermost must have write permissions in it. Changing this setting requires a server restart before taking effect.", "admin.log.locationPlaceholder": "Enter your file location",