mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 14:56:30 +01:00
Fixed an issue that didn't allow the runner to launch profiled Portal in interactive mode.
This commit is contained in:
parent
fdceb93dcb
commit
44b5ae07ba
1 changed files with 8 additions and 6 deletions
|
|
@ -259,11 +259,12 @@ def main():
|
|||
# don't log to server logfile
|
||||
del server_argv[2]
|
||||
print _("\nStarting Evennia Server (output to stdout).")
|
||||
elif options.sprof:
|
||||
server_argv.extend(sprof_argv)
|
||||
print "\nRunning Evennia Server under cProfile."
|
||||
else:
|
||||
print _("\nStarting Evennia Server (output to server logfile).")
|
||||
if options.sprof:
|
||||
server_argv.extend(sprof_argv)
|
||||
print "\nRunning Evennia Server under cProfile."
|
||||
|
||||
cycle_logfile(SERVER_LOGFILE)
|
||||
|
||||
# Portal
|
||||
|
|
@ -281,12 +282,13 @@ def main():
|
|||
PORTAL_INTERACTIVE = True
|
||||
set_restart_mode(PORTAL_RESTART, True)
|
||||
print _("\nStarting Evennia Portal in non-Daemon mode (output to stdout).")
|
||||
elif options.pprof:
|
||||
server_argv.extend(pprof_argv)
|
||||
print "\nRunning Evennia Portal under cProfile."
|
||||
else:
|
||||
set_restart_mode(PORTAL_RESTART, False)
|
||||
print _("\nStarting Evennia Portal in Daemon mode (output to portal logfile).")
|
||||
if options.pprof:
|
||||
server_argv.extend(pprof_argv)
|
||||
print "\nRunning Evennia Portal under cProfile."
|
||||
|
||||
cycle_logfile(PORTAL_LOGFILE)
|
||||
|
||||
# Windows fixes (Windows don't support pidfiles natively)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue