Commit aa810d86 authored by Michal Čihař's avatar Michal Čihař

Do not add console if already present

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 4c652be9
......@@ -378,7 +378,8 @@ LOGGING = {
}
# Logging of management commands to console
if os.environ.get('DJANGO_IS_MANAGEMENT_COMMAND', False):
if (os.environ.get('DJANGO_IS_MANAGEMENT_COMMAND', False)
and 'console' not in LOGGING['loggers']['weblate']['handlers']):
LOGGING['loggers']['weblate']['handlers'].append('console')
# Machine translation API keys
......
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