summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
authorJohn Dennis <jdennis@redhat.com>2009-11-19 11:56:14 -0500
committerRob Crittenden <rcritten@redhat.com>2009-11-23 16:30:01 -0500
commitdbb5721e7c1660488bf028b0a2439f792b1b93e9 (patch)
treed8888423830fe2a44114b0478550980e60e84051 /ipalib/plugable.py
parentce3df4f74ab66ee9e041d8ca12294fb621468298 (diff)
downloadfreeipa-dbb5721e7c1660488bf028b0a2439f792b1b93e9.zip
freeipa-dbb5721e7c1660488bf028b0a2439f792b1b93e9.tar.gz
freeipa-dbb5721e7c1660488bf028b0a2439f792b1b93e9.tar.xz
If plugin fails to load log the traceback
Signed-off-by: John Dennis <jdennis@redhat.com> If plugin fails to load log the traceback If a plugin fails to load due to some kind of error it would be nice if the error log contained the traceback so you can examine what went wrong rather than being left blind as to why it failed to load.
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 3724edf..3ee2bd5 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -582,7 +582,8 @@ class API(DictProxy):
'skipping plugin module %s: %s', fullname, e.reason
)
except StandardError, e:
- self.log.error('could not load plugin module %r', pyfile)
+ import traceback
+ self.log.error('could not load plugin module %r\n%s', pyfile, traceback.format_exc())
raise e
def finalize(self):