Fix of server/portal log upstart condition

This commit is contained in:
Griatch 2022-02-13 23:26:39 +01:00
parent 17f0ce8245
commit 856f4c0eac
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),

View file

@ -648,7 +648,7 @@ except OperationalError:
application = service.Application("Evennia")
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, but only if we are not running in interactive mode
logfile = logger.WeeklyLogFile(
os.path.basename(settings.SERVER_LOG_FILE),