Przeglądaj źródła

debugable getCofig

mizozobu 6 lat temu
rodzic
commit
862d2e2cab
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7 2
      src/server/service/config-manager.js

+ 7 - 2
src/server/service/config-manager.js

@@ -48,11 +48,16 @@ class ConfigManager {
    * - undefined: a specified config does not exist.
    * - undefined: a specified config does not exist.
    */
    */
   getConfig(namespace, key) {
   getConfig(namespace, key) {
+    let value;
+
     if (this.searchOnlyFromEnvVarConfigs('crowi', 'security:passport-saml:useOnlyEnvVarsForSomeOptions')) {
     if (this.searchOnlyFromEnvVarConfigs('crowi', 'security:passport-saml:useOnlyEnvVarsForSomeOptions')) {
-      return this.searchInSAMLUseOnlyEnvMode(namespace, key);
+      value = this.searchInSAMLUseOnlyEnvMode(namespace, key);
     }
     }
 
 
-    return this.defaultSearch(namespace, key);
+    value = this.defaultSearch(namespace, key);
+
+    debug(key, value);
+    return value;
   }
   }
 
 
   /**
   /**