Fix of server/portal log upstart condition

This commit is contained in:
Griatch 2022-02-13 23:26:39 +01:00
parent 42ee0db1da
commit 2e94e1b67d
2 changed files with 2 additions and 2 deletions

View file

@ -247,7 +247,7 @@ application = service.Application("Portal")
if ("--nodaemon" not in sys.argv
and not hasattr(settings, "_TEST_ENVIRONMENT") and settings._TEST_ENVIRONMENT):
and not (hasattr(settings, "_TEST_ENVIRONMENT") and settings._TEST_ENVIRONMENT)):
# custom logging
logfile = logger.WeeklyLogFile(
os.path.basename(settings.PORTAL_LOG_FILE),