Bläddra i källkod

Display config set in logs even if URL in name when it is str

Bastien Sevajol (Algoo) 8 år sedan
förälder
incheckning
7622ccf6b2
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      tracim/tracim/config/app_cfg.py

+ 3 - 1
tracim/tracim/config/app_cfg.py Visa fil

@@ -173,7 +173,9 @@ class CFG(object):
173 173
         :param value:
174 174
         :return:
175 175
         """
176
-        if 'PASSWORD' not in key and 'URL' not in key and 'CONTENT' not in key:
176
+        if 'PASSWORD' not in key and \
177
+                ('URL' not in key or type(value) == str) and \
178
+                'CONTENT' not in key:
177 179
             # We do not show PASSWORD for security reason
178 180
             # we do not show URL because the associated config uses tg.lurl() which is evaluated when at display time.
179 181
             # At the time of configuration setup, it can't be evaluated