Explorar el Código

tidy up logger output

Yuki Takei hace 1 año
padre
commit
c5e75e961b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      apps/app/src/server/service/config-manager/config-manager.ts

+ 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;