This commit is contained in:
Gareth J. Greenaway 2018-02-09 12:34:47 -08:00
parent 7fd00ec752
commit 25dffaae91
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -17,6 +17,7 @@ import logging.handlers
# Import salt libs
from salt.log.mixins import NewStyleClassMixIn, ExcInfoOnLogLevelFormatMixIn
from salt.ext.six.moves import queue
log = logging.getLogger(__name__)
@ -176,7 +177,7 @@ if sys.version_info < (3, 2):
'''
try:
self.queue.put_nowait(record)
except self.queue.Full:
except queue.Full:
sys.stderr.write('[WARNING ] Message queue is full, '
'unable to write "{0}" to log', record
)