Browse Source

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

Ensure logging path is wrapped in quotes when provided
Peter Justin 6 years ago
parent
commit
8997221b80
1 changed files with 5 additions and 1 deletions
  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