mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45958 from garethgreenaway/backport-fixing_mactests_queue_full
Backporting #45935 to 2017.7
This commit is contained in:
commit
bf03abd07c
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