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

Unable to mute "Stale cache[res]: running tests" with loglevel #991

Open
halberom opened this issue Oct 21, 2024 · 0 comments
Open

Unable to mute "Stale cache[res]: running tests" with loglevel #991

halberom opened this issue Oct 21, 2024 · 0 comments
Labels

Comments

@halberom
Copy link

Describe the bug
Unable to mute "Stale cache[res]: running tests" log output irrespective of log level set. This is annoying because a container behind an ALB will flood logs unnecessarily.

p.s. the documentation in https://goss.readthedocs.io/en/stable/cli/ suggests that --loglevel is per command, but in actual fact it is at the global-level.

How To Reproduce

https://gist.github.com/halberom/2081e2652617a973af4db049a66f4d1f

Expected Behavior

Changing log level to WARN or at least ERROR should stop "Stale cache[res]: running tests" from being output.

Actual Behavior

I have to change the cache duration to 0, which is fine in my situation, but seems odd.

Environment:

  • Version of goss - tested with 0.4.8 and 0.4.9
  • OS/Distribution version (if applicable) - Python Docker container, and others.
@halberom halberom added the bug label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant