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

Docker container log level #343

Closed
PatrickDuncan opened this issue Dec 9, 2021 · 2 comments · Fixed by #346
Closed

Docker container log level #343

PatrickDuncan opened this issue Dec 9, 2021 · 2 comments · Fixed by #346
Assignees
Milestone

Comments

@PatrickDuncan
Copy link

Hello, how do we change the log level of the Docker container? It defaults to info, I'd like to change it to warning or error. I don't see any mention of it with a shallow search.
I'm hoping there's an env var we can use.

@miry
Copy link
Contributor

miry commented Dec 22, 2021

@PatrickDuncan I want to clarify, you want to change the log level for toxiproxy server via env variable. I have fastly checked the code and could not find anything to do it.

@miry miry added this to the 2.3.0 milestone Dec 22, 2021
@miry miry self-assigned this Dec 22, 2021
@miry miry added the Toxiproxy label Dec 22, 2021
This was referenced Dec 22, 2021
@miry miry closed this as completed in #346 Dec 23, 2021
@miry
Copy link
Contributor

miry commented Dec 23, 2021

@PatrickDuncan I have released a new version 2.3.0. Now it is possible to set env LOG_LEVEL.

$ docker run --rm -e LOG_LEVEL=debug -it ghcr.io/shopify/toxiproxy:2.3.0
INFO[0000] API HTTP server starting                      host=0.0.0.0 port=8474 version=2.3.0

$ docker run --rm -e LOG_LEVEL=warn -it ghcr.io/shopify/toxiproxy:2.3.0 
(empty)

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

Successfully merging a pull request may close this issue.

2 participants