Merge pull request #25792 from rallytime/bp-25688

Back-port #25688 to 2015.5
This commit is contained in:
Nicole Thomas 2015-07-28 13:37:17 -06:00
commit 4109ae55f9

View file

@ -121,14 +121,14 @@ class SaltLoggingClass(with_metaclass(LoggingMixInMeta, LOGGING_LOGGER_CLASS, Ne
LOGGING_TEMP_HANDLER):
continue
if not handler.lock:
handler.createLock()
handler.acquire()
formatter = handler.formatter
if not formatter:
continue
if not handler.lock:
handler.createLock()
handler.acquire()
fmt = formatter._fmt.replace('%', '%%')
match = MODNAME_PATTERN.search(fmt)