Yuki Takei 1 год назад
Родитель
Сommit
c5e75e961b
1 измененных файлов с 3 добавлено и 1 удалено
  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;