mendhak / docker-http-https-echo

Docker image that echoes request data as JSON; listens on HTTP/S, useful for debugging.
https://code.mendhak.com/docker-http-https-echo/
MIT License
624 stars 136 forks source link

feat: add LOG_IGNORE_PATH env var to exclude a path from logs #8

Closed askainet closed 3 years ago

askainet commented 3 years ago

Set the environment variable LOG_IGNORE_PATH to a path you would like to exclude from logging to stdout. Useful to remove verbose logging of health checks when deployed to Kubernetes.

docker run -e LOG_IGNORE_PATH=/ping -e HTTP_PORT=8888 -e HTTPS_PORT=9999 -p 8080:8888 -p 8443:9999 --rm -t mendhak/http-https-echo
mendhak commented 3 years ago

Hey thanks! That's a good idea. I'll add some modifications to this in a bit.

askainet commented 3 years ago

Hey thanks! That's a good idea. I'll add some modifications to this in a bit.

Glad you like it! Thanks for merging 😄

mendhak commented 3 years ago

Docker Hub build is complete. The :latest tag is now ready with these changes.