Skip to content

Commit 8e11eb9

Browse files
committed
Add note about DISABLE_REQUEST_LOGS
1 parent 88b14fe commit 8e11eb9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ Now make your request with `Authentication: eyJ...` header (it should also work
7878

7979
And in the output you should see a `jwt` section.
8080

81+
## Disable ExpressJS log lines
82+
83+
In the log output set the environment variable `DISABLE_REQUEST_LOGS` to true, to disable the specific ExpressJS request log lines. The ones like `::ffff:172.17.0.1 - - [03/Jan/2022:21:31:51 +0000] "GET /xyz HTTP/1.1" 200 423 "-" "curl/7.68.0"`. The JSON output will still appear.
84+
85+
docker run --rm -e DISABLE_REQUEST_LOGS=true --name http-echo-tests -p 8080:8080 -p 8443:8443 -t mendhak/http-https-echo:22
86+
87+
8188
## Do not log specific path
8289

8390
Set the environment variable `LOG_IGNORE_PATH` to a path you would like to exclude from verbose logging to stdout.

0 commit comments

Comments
 (0)