Skip to content

Commit

Permalink
Avoid warning noise in logrotate.get
Browse files Browse the repository at this point in the history
There is no guarantee that a lookup failure is necessarily a problem,
so presenting a message to this effect as a warning has led to
confusion for some (and annoyance for others). This resolves the issue
by showing the message at the debug level.

Fixes saltstack#53988
  • Loading branch information
boltronics authored and Megan Wilhite committed Sep 27, 2022
1 parent 531dfd4 commit 8aa023a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/logrotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def get(key, value=None, conf_file=_DEFAULT_CONF):
if value:
if stanza:
return stanza.get(value, False)
_LOG.warning("Block '%s' not present or empty.", key)
_LOG.debug("Block '%s' not present or empty.", key)
return stanza


Expand Down

0 comments on commit 8aa023a

Please sign in to comment.