Przeglądaj źródła

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

Bastien Sevajol (Algoo) 8 lat temu
rodzic
commit
7622ccf6b2
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      tracim/tracim/config/app_cfg.py

+ 3 - 1
tracim/tracim/config/app_cfg.py Wyświetl plik

173
         :param value:
173
         :param value:
174
         :return:
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
             # We do not show PASSWORD for security reason
179
             # We do not show PASSWORD for security reason
178
             # we do not show URL because the associated config uses tg.lurl() which is evaluated when at display time.
180
             # we do not show URL because the associated config uses tg.lurl() which is evaluated when at display time.
179
             # At the time of configuration setup, it can't be evaluated
181
             # At the time of configuration setup, it can't be evaluated