correctly print traceback to log file in debug mode
This commit is contained in:
parent
f49470a2c9
commit
f889863eea
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
import traceback
|
||||||
|
|
||||||
from ..compat import open, import_module
|
from ..compat import open, import_module
|
||||||
|
|
||||||
|
@ -69,7 +70,7 @@ class DependencyParser(object):
|
||||||
module = import_module('.%s' % module_name, package=__package__)
|
module = import_module('.%s' % module_name, package=__package__)
|
||||||
self.parser = getattr(module, class_name)
|
self.parser = getattr(module, class_name)
|
||||||
except ImportError as ex:
|
except ImportError as ex:
|
||||||
log.debug(ex)
|
log.debug(traceback.format_exc())
|
||||||
|
|
||||||
def parse(self):
|
def parse(self):
|
||||||
if self.parser:
|
if self.parser:
|
||||||
|
|
Loading…
Reference in a new issue