Fixed a bug in profile running

This commit is contained in:
Griatch 2015-01-10 18:04:53 +01:00
parent 8e020bfb62
commit d92a8fe96f

View file

@ -798,7 +798,7 @@ def server_operation(mode, service, interactive, profiler):
# for convenience we don't start logging of
# portal, only of server with this command.
if profiler:
cmdstr.append('--profile-server') # this is the common case
cmdstr.append('--pserver') # this is the common case
if interactive:
cmdstr.append('--iserver')
django.core.management.call_command('collectstatic', verbosity=1, interactive=False)
@ -852,7 +852,7 @@ def main():
help="Start given processes in interactive mode.")
parser.add_argument('--init', action='store', dest="init", metavar="name",
help="Creates a new game directory 'name' at the current location.")
parser.add_argument('--profile', action='store_true', dest='profiler', default=False,
parser.add_argument('--profiler', action='store_true', dest='profiler', default=False,
help="Start given server component under the Python profiler.")
parser.add_argument('--dummyrunner', nargs=1, action='store', dest='dummyrunner', metavar="N",
help="Tests a running server by connecting N dummy players to it.")