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
621 stars 136 forks source link

Add env variable to disable express logging #34

Closed quentinleclerc closed 2 years ago

quentinleclerc commented 2 years ago

Hello, I've been needing exactly your software but with a slight change so I figured I might as well upload it, if someone needs it.

I just added an environment variable to disable express logging if not needed. I set it to true in the dockerfile to let the default behaviour unchanged.

Thanks,

mendhak commented 2 years ago

I've redone the feature with a different environment variable, going in the opposite direction, I didn't want any extra variables required in the Dockerfile.

Also I've just removed the dashes completely, I don't think it served a good purpose.

I'll close this PR, this is now implemented here: https://github.com/mendhak/docker-http-https-echo/pull/35

mendhak commented 2 years ago

OK it's now in tag :23 and works by setting the environment variable, DISABLE_REQUEST_LOGS=true

AAAH I forgot your table! OK I'll add that another time it's a nice useful summary