Further improvement of log conditional

This commit is contained in:
Griatch 2022-02-14 00:34:13 +01:00
parent 39368bc9ae
commit 4e2962fef8
5 changed files with 17 additions and 17 deletions

View file

@ -246,9 +246,8 @@ class Portal(object):
application = service.Application("Portal")
if ("--nodaemon" not in sys.argv
and not (hasattr(settings, "_TEST_ENVIRONMENT") and settings._TEST_ENVIRONMENT)):
# custom logging
if "--nodaemon" not in sys.argv and "test" not in sys.argv:
# activate logging for interactive/testing mode
logfile = logger.WeeklyLogFile(
os.path.basename(settings.PORTAL_LOG_FILE),
os.path.dirname(settings.PORTAL_LOG_FILE),