From a1ffe04a3002d49a4acd5577618dc4865f2c7adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Thu, 8 Oct 2015 18:23:37 +0200 Subject: [PATCH] More sensible exceptions when importing --- senpy/extensions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/senpy/extensions.py b/senpy/extensions.py index 60b96a9..d6124b6 100644 --- a/senpy/extensions.py +++ b/senpy/extensions.py @@ -17,6 +17,7 @@ import inspect import sys import imp import logging +import traceback import gevent import json @@ -190,7 +191,8 @@ class Senpy(object): except InvalidGitRepositoryError: module._repo = None except Exception as ex: - logger.debug("Exception importing {}: {}".format(filename, ex)) + logger.error("Exception importing {}: {}".format(filename, ex)) + logger.error("Trace: {}".format(traceback.format_exc())) return None, None return name, module