mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Backporting #45935
This commit is contained in:
parent
7fd00ec752
commit
25dffaae91
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue