From: Leandro Lucarella Date: Wed, 18 Jun 2008 03:40:53 +0000 (-0300) Subject: Shutdown logging properly when exiting pymind. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/bd93cc3ffdeb9483b376d72a5c0b51667d6c1e92?ds=inline Shutdown logging properly when exiting pymind. --- diff --git a/pymind b/pymind index bc164bb..3857ef8 100755 --- a/pymind +++ b/pymind @@ -82,6 +82,7 @@ def activate_ip_forward(): def die(status, msg, *args): log.critical(msg, *args) + logging.shutdown() sys.exit(status) def get_config(paths, version, desc, add_options, defaults): @@ -133,6 +134,7 @@ def main(): root_handler = build_root(config, args, services.services) activate_ip_forward() PyminDaemon(root_handler, (config.bind_addr, config.bind_port)).run() + logging.shutdown() if __name__ == '__main__': main()