Skip to content
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

Modify wording of ERROR: Please take a look at your interval settings #149

Closed
jerryaldrichiii opened this issue Nov 8, 2016 · 0 comments · Fixed by #151
Closed

Modify wording of ERROR: Please take a look at your interval settings #149

jerryaldrichiii opened this issue Nov 8, 2016 · 0 comments · Fixed by #151
Assignees

Comments

@jerryaldrichiii
Copy link
Contributor

Issue

When running this cookbook for the first time and specifying an interval, the user is presented with this error:

Chef::Log.error 'Please take a look at your interval settings'

This may lead the user to believe that something is configured incorrectly. However, they may be getting this error because this returned false:

seconds_since_last_run > interval

Possible Solution

Could we modify this error to be a warning and say something similar to:

Chef::Log.warn 'Audit run skipped due to interval configuration'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants