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

chore: super simple verbose logs when pruning #71

Merged
merged 8 commits into from
May 17, 2023

Conversation

mdelapenya
Copy link
Contributor

@mdelapenya mdelapenya commented Mar 30, 2023

What does this PR do?

It supports configuring Ryuk to add verbosity when calling the Docker APIs. It can be set with the RYUK_VERBOSE environment variable, which accepts boolean values.

Everytime the Docker client is used to list/prune resources (containers, networks, volumes and images), a log will be produced if and only if the verbose variable is enabled.

Why is it important?

Support debugging certain failures while accessing the Docker engine

@mdelapenya mdelapenya requested a review from a team as a code owner March 30, 2023 15:48
@mdelapenya mdelapenya added the enhancement New feature or request label Mar 30, 2023
@mdelapenya mdelapenya self-assigned this Mar 30, 2023
HofmeisterAn
HofmeisterAn previously approved these changes Apr 5, 2023
Copy link
Contributor

@HofmeisterAn HofmeisterAn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QQ: I don't remember anymore, did we decide to replace the CLI switches with environment variables or add the environment variables in addition to the switches?

@mdelapenya
Copy link
Contributor Author

We decided to use env vars, only

Explanation here: #49 (review)

main.go Outdated Show resolved Hide resolved
@mdelapenya mdelapenya marked this pull request as draft May 17, 2023 07:25
main.go Outdated Show resolved Hide resolved
@mdelapenya mdelapenya marked this pull request as ready for review May 17, 2023 07:36
main_test.go Outdated Show resolved Hide resolved
@mdelapenya mdelapenya merged commit bfea399 into testcontainers:main May 17, 2023
4 checks passed
@mdelapenya mdelapenya deleted the add-verbose-flag branch May 17, 2023 10:33
eddumelendez pushed a commit to eddumelendez/moby-ryuk that referenced this pull request Jul 10, 2023
* chore: super simple verbose logs when pruning

* fix: indent

* fix: indent after editing using the UI

* chore: remove verbose flag

We only accept env vars for configuration

* docs: document the new environment variable

* fix: remove outdated test

* fix: remove outdated test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants