Procházet zdrojové kódy

tidy up logger output

Yuki Takei před 1 rokem
rodič
revize
c5e75e961b

+ 3 - 1
apps/app/src/server/service/config-manager/config-manager.ts

@@ -96,7 +96,9 @@ export class ConfigManager implements IConfigManagerForApp, S2sMessageHandlable
 
     const valueByLegacy = configManagerLegacy.getConfig(ns, key);
     if (value !== valueByLegacy) {
-      logger.warn(`The value of the config key '${key}' is different between the new and legacy config managers: `, { value, valueByLegacy });
+      if (!(value === undefined && valueByLegacy === null)) {
+        logger.warn(`The value of the config key '${key}' is different between the new and legacy config managers: `, { value, valueByLegacy });
+      }
     }
 
     return value;