Skip to content

Commit 30f3860

Browse files
authored
Remove header logs (#1021)
1 parent 62353d0 commit 30f3860

File tree

1 file changed

+0
-7
lines changed
  • ooniapi/services/ooniprobe/src/ooniprobe

1 file changed

+0
-7
lines changed

ooniapi/services/ooniprobe/src/ooniprobe/utils.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,6 @@ def extract_probe_ipaddr(request: Request) -> str:
126126

127127
real_ip_headers = ["X-Forwarded-For", "X-Real-IP"]
128128

129-
# -- DEBUG, DELETE LATER ----------------------------
130-
for h in real_ip_headers:
131-
if h in request.headers:
132-
# TODO delete log after investigating issue with headers
133-
log.info(f"{h}: {request.headers.getlist(h)}")
134-
# ---------------------------------------------------
135-
136129
for h in real_ip_headers:
137130
if h in request.headers:
138131
return request.headers.getlist(h)[0].rpartition(" ")[-1]

0 commit comments

Comments
 (0)