Skip to content

Commit

Permalink
print more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Sep 12, 2024
1 parent c1df817 commit 60c4005
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3-slim AS builder
ADD . /app
WORKDIR /app

RUN pip install --target=/app requests openziti

# https://github.com/GoogleContainerTools/distroless
FROM gcr.io/distroless/python3-debian12
COPY --from=builder /app /app
COPY ./zhook.py /app/zhook.py
WORKDIR /app
ENV PYTHONPATH /app
ENV PYTHONPATH=/app
ENV ZITI_LOG=4
CMD ["/app/zhook.py"]
3 changes: 2 additions & 1 deletion zhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ def dumpJson(self):

with openziti.monkeypatch():
try:
print(f"Posting webhook to {url}")
print(f"Posting webhook to {url} with headers {headers} and data {data}")
# breakpoint()
r = requests.post(url, headers=headers, data=data)
print(f"Response Status: {r.status_code}")
print(r.headers)
Expand Down

0 comments on commit 60c4005

Please sign in to comment.