Merge pull request #5165 from s0undt3ch/develop

Don't try to get the `_fmt` attribute if there's no formatter.
This commit is contained in:
Thomas S Hatch 2013-05-21 01:50:49 -07:00
commit 7eaee6d9a0

View File

@ -166,6 +166,9 @@ class SaltLoggingClass(LOGGING_LOGGER_CLASS):
handler.acquire()
formatter = handler.formatter
if not formatter:
continue
fmt = formatter._fmt.replace('%', '%%')
match = MODNAME_PATTERN.search(fmt)