From 28011e1bbe72fc359488fe5ac082526939035e6e Mon Sep 17 00:00:00 2001 From: Lars Vierbergen Date: Tue, 24 Jan 2017 01:27:14 +0100 Subject: [PATCH] Properly log exception when saved state cannot be loaded --- modules/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/application.py b/modules/application.py index e47a47e..a263967 100644 --- a/modules/application.py +++ b/modules/application.py @@ -109,7 +109,7 @@ class Application(GroupedControl): logger.info("Loaded state: %r" % state) self.load_state_ex(state) except: - traceback.print_exc() + logger.exception('Could not load state') def cleanup(self): if self.args.state_file is not None: