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 · 1 comment
Open

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

halberom opened this issue Oct 21, 2024 · 1 comment

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.
@aelsabbahy
Copy link
Member

Thank you for the detailed explanation and extremely clear how to reproduce.

I've marked this issue as approved, anyone is free to submit a PR fixing this. If not, I'll try to get around to it sometime next week, I would think it's a simple one liner change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants