summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-11-02 17:24:16 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-11-02 17:24:16 +0000
commit795512b073ac46b905062e35d5aaadacf1aa3497 (patch)
tree8aa400a5b01cd41dd6e9de718054e555387252f2 /src/lib/Server
parent46a35443d3ccb02fbbe1b4f468d01757793f609b (diff)
downloadbcfg2-795512b073ac46b905062e35d5aaadacf1aa3497.tar.gz
bcfg2-795512b073ac46b905062e35d5aaadacf1aa3497.tar.bz2
bcfg2-795512b073ac46b905062e35d5aaadacf1aa3497.zip
make Core.py produce more error messages with plugin load failures (from GP) (Resolves Ticket #488)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3903 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index a55b88983..830b06a89 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -232,8 +232,8 @@ class Core(object):
try:
mod = getattr(__import__("Bcfg2.Server.Plugins.%s" %
(plugin)).Server.Plugins, plugin)
- except ImportError:
- logger.error("Failed to load plugin %s" % (plugin))
+ except ImportError, e:
+ logger.error("Failed to load plugin %s: %s" % (plugin, e))
continue
struct = getattr(mod, plugin)
try: