Commit 1b7a6464 authored by Michal Čihař's avatar Michal Čihař

Check whether /dev/log exists before trying to use it

Fixes #344
parent 774bdc9e
......@@ -222,7 +222,11 @@ TEMPLATE_CONTEXT_PROCESSORS = (
'trans.context_processors.registration',
)
if DEBUG:
# Default logging of Weblate messages
# - to syslog in production (if available)
# - otherwise to console
if DEBUG or not os.path.exists('/dev/log'):
DEFAULT_LOG = 'console'
else:
DEFAULT_LOG = 'syslog'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment