From f889863eeadb54796fbacfe18e37cae2a7a619d3 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Wed, 24 Dec 2014 12:11:00 -0600 Subject: [PATCH] correctly print traceback to log file in debug mode --- wakatime/languages/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wakatime/languages/__init__.py b/wakatime/languages/__init__.py index 9178dbe..c56e626 100644 --- a/wakatime/languages/__init__.py +++ b/wakatime/languages/__init__.py @@ -10,6 +10,7 @@ """ import logging +import traceback from ..compat import open, import_module @@ -69,7 +70,7 @@ class DependencyParser(object): module = import_module('.%s' % module_name, package=__package__) self.parser = getattr(module, class_name) except ImportError as ex: - log.debug(ex) + log.debug(traceback.format_exc()) def parse(self): if self.parser: