diff --git a/evennia/server/evennia_launcher.py b/evennia/server/evennia_launcher.py index c78b7c651d..48aa7f9321 100644 --- a/evennia/server/evennia_launcher.py +++ b/evennia/server/evennia_launcher.py @@ -538,8 +538,16 @@ def _get_twistd_cmdline(pprofiler, sprofiler): Compile the command line for starting a Twisted application using the 'twistd' executable. """ - portal_cmd = [TWISTED_BINARY, "--python={}".format(PORTAL_PY_FILE)] - server_cmd = [TWISTED_BINARY, "--python={}".format(SERVER_PY_FILE)] + portal_cmd = [ + TWISTED_BINARY, + f"--python={PORTAL_PY_FILE}", + "--logger=evennia.utils.logger.GetPortalLogObserver", + ] + server_cmd = [ + TWISTED_BINARY, + f"--python={SERVER_PY_FILE}", + "--logger=evennia.utils.logger.GetServerLogObserver", + ] if os.name != "nt": # PID files only for UNIX diff --git a/evennia/server/server.py b/evennia/server/server.py index db2548e8f9..745dfeb480 100644 --- a/evennia/server/server.py +++ b/evennia/server/server.py @@ -31,7 +31,6 @@ from django.conf import settings from django.db import connection from django.db.utils import OperationalError from django.utils.translation import gettext as _ - from evennia.accounts.models import AccountDB from evennia.scripts.models import ScriptDB from evennia.server.models import ServerConfig