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 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:
|
||||
|
|
Loading…
Reference in a new issue