Fix of server/portal log upstart condition
This commit is contained in:
parent
42ee0db1da
commit
2e94e1b67d
2 changed files with 2 additions and 2 deletions
|
|
@ -247,7 +247,7 @@ application = service.Application("Portal")
|
||||||
|
|
||||||
|
|
||||||
if ("--nodaemon" not in sys.argv
|
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
|
# custom logging
|
||||||
logfile = logger.WeeklyLogFile(
|
logfile = logger.WeeklyLogFile(
|
||||||
os.path.basename(settings.PORTAL_LOG_FILE),
|
os.path.basename(settings.PORTAL_LOG_FILE),
|
||||||
|
|
|
||||||
|
|
@ -648,7 +648,7 @@ except OperationalError:
|
||||||
application = service.Application("Evennia")
|
application = service.Application("Evennia")
|
||||||
|
|
||||||
if ("--nodaemon" not in sys.argv
|
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
|
# custom logging, but only if we are not running in interactive mode
|
||||||
logfile = logger.WeeklyLogFile(
|
logfile = logger.WeeklyLogFile(
|
||||||
os.path.basename(settings.SERVER_LOG_FILE),
|
os.path.basename(settings.SERVER_LOG_FILE),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue