ifix(email): Create the log file only if required

+ update some translations
+ update some tests to correctly mock unlink as well
+ fix flake8 errors and sort the imports in email module
+ update some log messages to pass base message + parameters instead of rendered string (works better with Sentry)
This commit is contained in:
Arkadiy Korotaev
2020-11-25 10:20:36 +01:00
parent b9855ec83f
commit d2a7bad576
8 changed files with 98 additions and 73 deletions

View File

@ -307,7 +307,7 @@ class Queue(models.Model):
null=True,
help_text=_('If logging is enabled, what directory should we use to '
'store log files for this queue? '
'If no directory is set, default to /var/log/helpdesk/'),
'The standard logging mechanims are used if no directory is set'),
)
default_owner = models.ForeignKey(