Commit eadce382 authored by Julien Muchembled's avatar Julien Muchembled

Log exit message

parent d4eb48ce
...@@ -447,4 +447,10 @@ def main(): ...@@ -447,4 +447,10 @@ def main():
os.execvp(sys.argv[0], sys.argv) os.execvp(sys.argv[0], sys.argv)
if __name__ == "__main__": if __name__ == "__main__":
try:
main() main()
except SystemExit, e:
if type(e.code) is str:
if hasattr(logging, 'trace'): # utils.setupLog called
logging.critical(e.code)
raise
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment