diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-04-12 12:53:32 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-05-04 11:11:58 -0400 |
commit | ddff6db72976793db29de31f082a6e6fa3814ac5 (patch) | |
tree | 887a10e6e6486170ebccb9f733c1b31baf915eef /src/lib/Server/Plugins | |
parent | 98563b90b2dbaa0dae5f62f6d58c4663fb537ddf (diff) | |
download | bcfg2-ddff6db72976793db29de31f082a6e6fa3814ac5.tar.gz bcfg2-ddff6db72976793db29de31f082a6e6fa3814ac5.tar.bz2 bcfg2-ddff6db72976793db29de31f082a6e6fa3814ac5.zip |
improved error reporting in a few places
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r-- | src/lib/Server/Plugins/TGenshi.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/Server/Plugins/TGenshi.py b/src/lib/Server/Plugins/TGenshi.py index bc5e00400..072f5cd7b 100644 --- a/src/lib/Server/Plugins/TGenshi.py +++ b/src/lib/Server/Plugins/TGenshi.py @@ -115,12 +115,10 @@ class TemplateFile: if entry.text == '': entry.set('empty', 'true') except TemplateError: - terror = sys.exc_info()[1] - logger.error('Genshi template error: %s' % terror) + logger.exception('Genshi template error') raise Bcfg2.Server.Plugin.PluginExecutionError except AttributeError: - err = sys.exc_info()[1] - logger.error('Genshi template loading error: %s' % err) + logger.exception('Genshi template loading error') raise Bcfg2.Server.Plugin.PluginExecutionError |