mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
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:
commit
7eaee6d9a0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user