Просмотр исходного кода

Merge pull request #486 from justanr/fix-log-conf-generation

Ensure logging path is wrapped in quotes when provided
Peter Justin 6 лет назад
Родитель
Сommit
8997221b80
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      flaskbb/configs/config.cfg.template

+ 5 - 1
flaskbb/configs/config.cfg.template

@@ -171,7 +171,11 @@ ADMINS = ["{{ mail_admin_address }}"]
 # and the default logging setting.
 #
 # If set to a file path, this should be an absolute file path
-LOG_CONF_FILE = {{ log_config_path or None }}
+{% if log_config_path %}
+LOG_CONF_FILE = "{{ log_config_path }}"
+{% else %}
+LOG_CONF_FILE = None
+{% endif %}
 
 # Path to store the INFO and ERROR logs
 # If None this defaults to flaskbb/logs