mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Get rid of confusing debug logging
When count is its default of -1, we get confusing debug logging counting
down negative numbers as the function listens for a matching event. This
gets rid of that by only logging when the count is positive.
Inspired by d74c155
.
This commit is contained in:
parent
395b7f8fdc
commit
5d6de3a2eb
1 changed files with 3 additions and 2 deletions
|
@ -2030,8 +2030,9 @@ def event(tagmatch='*',
|
|||
indent=None if not pretty else 4)))
|
||||
sys.stdout.flush()
|
||||
|
||||
count -= 1
|
||||
log.debug('Remaining event matches: %s', count)
|
||||
if count > 0:
|
||||
count -= 1
|
||||
log.debug('Remaining event matches: %s', count)
|
||||
|
||||
if count == 0:
|
||||
break
|
||||
|
|
Loading…
Add table
Reference in a new issue