From 661b96cfe544f2ad578aea2683a27f520e8c014a Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Sat, 2 May 2020 15:06:43 -0400 Subject: [PATCH] Fixed bug that prevented default config items to be set --- backend/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/config.js b/backend/config.js index 19ec0ae..a968ae2 100644 --- a/backend/config.js +++ b/backend/config.js @@ -77,7 +77,7 @@ function getConfigItem(key) { let path = CONFIG_ITEMS[key]['path']; const val = Object.byString(config_json, path); if (val === undefined && Object.byString(DEFAULT_CONFIG, path)) { - logger.warning(`Cannot find config with key '${key}'. Creating one with the default value...`); + logger.warn(`Cannot find config with key '${key}'. Creating one with the default value...`); setConfigItem(key, Object.byString(DEFAULT_CONFIG, path)); return Object.byString(DEFAULT_CONFIG, path); }