From: Ben Darnell Date: Mon, 27 Jun 2011 00:00:02 +0000 (-0700) Subject: Remove debugging print statement, log on clean exits too. X-Git-Tag: v2.1.0~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4bba5a9a5d62831e69d193e2e8fd31da10c3612;p=thirdparty%2Ftornado.git Remove debugging print statement, log on clean exits too. --- 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()