From 74023a791c04c121781018c807c8f2ee1d1d2baf Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 11 Dec 2014 00:27:16 +0100 Subject: log exception type --- imdb-lookup/imdbinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py index 4290dac..15c19bd 100755 --- a/imdb-lookup/imdbinfo.py +++ b/imdb-lookup/imdbinfo.py @@ -218,7 +218,7 @@ class Protector(object): except KeyboardInterrupt as e: raise e except Exception as e: - logging.error("Error calling %s: %s", name, e) + logging.error("Error calling %s: %s: %s", name, type(e), e) return None if callable(attr): return protected -- cgit v1.2.1