Skip to content

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

@halberom

Description

@halberom

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions