diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-24 11:54:44 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-24 11:58:04 -0400 |
commit | 4fb636cd7ff2d3f4352613932d2c02c08aba1636 (patch) | |
tree | 957697c6c1332b5f45c0bd5e8a25287561d19708 /src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py | |
parent | dd0c589a65f8bb668bdec6bffe6f3cf03b793cc5 (diff) | |
download | bcfg2-4fb636cd7ff2d3f4352613932d2c02c08aba1636.tar.gz bcfg2-4fb636cd7ff2d3f4352613932d2c02c08aba1636.tar.bz2 bcfg2-4fb636cd7ff2d3f4352613932d2c02c08aba1636.zip |
improved error messages during failed decryption
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py b/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py index fe53ea809..58f6e1e42 100644 --- a/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py +++ b/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py @@ -378,7 +378,12 @@ class CfgEntrySet(Bcfg2.Server.Plugin.EntrySet): (action, event.filename)) self.debug_log("%s handling %s event on %s" % (hdlr.__name__, action, event.filename)) - self.entry_init(event, hdlr) + try: + self.entry_init(event, hdlr) + except: # pylint: disable=W0702 + err = sys.exc_info()[1] + LOGGER.error("Cfg: Failed to parse %s: %s" % + (event.filename, err)) return elif hdlr.ignore(event, basename=self.path): return |