]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Remove debugging print statement, log on clean exits too.
authorBen Darnell <ben@bendarnell.com>
Mon, 27 Jun 2011 00:00:02 +0000 (17:00 -0700)
committerBen Darnell <ben@bendarnell.com>
Mon, 27 Jun 2011 00:00:02 +0000 (17:00 -0700)
tornado/autoreload.py

index e22365747b33f0dac586eea5df454d4ea556fe97..c4ced92d657f677e3c8538c791d3210867a4d39d 100644 (file)
@@ -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()