Permalink
Browse files

removed pdb.set_trace() and put stderr into a subprocess pipe.

At some point I should log stdout and stderr to a file or something
so that we can determine why a server crashed but for now this works
  • Loading branch information...
1 parent b5cf525 commit 4f0470388de67463fa8afef3f59e23bc00e2f884 @ericmoritz committed Jun 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 priv/server_manager.py
View
@@ -28,6 +28,7 @@ def start_server(name):
pid = subprocess.Popen(args,
stdin=subprocess.PIPE,
stderr=subprocess.PIPE,
+ stdout=subprocess.PIPE,
preexec_fn=os.setsid)
os.chdir(old_cwd)
return pid
@@ -90,7 +91,6 @@ def route_command(message_key, command, args, state):
else:
send_message(message_key, "stopped")
else:
- import pdb; pdb.set_trace()
send_error(message_key, "invalid command")

0 comments on commit 4f04703

Please sign in to comment.