Skip to content

Commit

Permalink
set termlog_verbosity config to $LOG_LEVEL
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Dec 19, 2023
1 parent c80fc10 commit c3ba0da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ RUN --mount=type=cache,target=/root/.cache/pip \

COPY . .

CMD ["mitmdump", "-s", "addons.py"]
ENV LOG_LEVEL=info

CMD [\
"/bin/sh", "-u", "-c", \
"mitmdump -s addons.py --set termlog_verbosity=$LOG_LEVEL" \
]

# When sending an HTTP request with `Host: localhost`, mitmproxy will respond with 502.
# So we only check if there's a process listening on that port.
Expand Down

0 comments on commit c3ba0da

Please sign in to comment.