-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logrotate.get logs warnings "Block" '%s' not present or empty." #53988
Comments
Here is where the issue is: It's printed whenever the file is empty, which it will be when building the file up from scratch. As such, a warning is too heavy handed since there is no problem and it's to be expected. I believe a simple |
@boltronics Thanks for pointing this out, I agree and thing this could probably actually be a debug log. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Thank you for updating this issue. It is no longer marked as stale. |
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
* Avoid warning noise in logrotate.get 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 #53988 * Adding a test for changes to logrotate.get. * Fix pre-commit and add changelog Co-authored-by: Gareth J. Greenaway <gareth@saltstack.com> Co-authored-by: Megan Wilhite <mwilhite@vmware.com>
Description of Issue
I have a logrotate state sls file that builds up a logrotate configuration from scratch. In doing this, it seems unavoidable that loud WARNING messages will be presented to the user, leading users to worry that something is wrong.
Setup
logrotate.sls
state file:logrotate.sls
pillar file:Steps to Reproduce Issue
With the above setup, run:
Versions Report
The text was updated successfully, but these errors were encountered: