From c4bba5a9a5d62831e69d193e2e8fd31da10c3612 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 26 Jun 2011 17:00:02 -0700 Subject: [PATCH] Remove debugging print statement, log on clean exits too. --- tornado/autoreload.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tornado/autoreload.py b/tornado/autoreload.py index e22365747..c4ced92d6 100644 --- a/tornado/autoreload.py +++ b/tornado/autoreload.py @@ -177,13 +177,15 @@ def main(): # something that tries to import __main__ (e.g. the unittest # module) will see the right things. exec f.read() in globals(), globals() - print "exec done" except SystemExit, e: logging.info("Script exited with status %s", e.code) except Exception, e: logging.warning("Script exited with uncaught exception", exc_info=True) if isinstance(e, SyntaxError): watch(e.filename) + else: + logging.info("Script exited normally") + # restore sys.argv so subsequent executions will include autoreload sys.argv = original_argv wait() -- 2.47.2