From aa498539490cdab5b194ec5f43df636a50fd7767 Mon Sep 17 00:00:00 2001 From: Lorenzo Venerandi Date: Sun, 22 Feb 2026 18:36:33 +0100 Subject: [PATCH] feat: log additional request information for non-suspicious access --- src/routes/honeypot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/routes/honeypot.py b/src/routes/honeypot.py index 6db1c65..3f57319 100644 --- a/src/routes/honeypot.py +++ b/src/routes/honeypot.py @@ -398,6 +398,10 @@ async def trap_page(request: Request, path: str): access_logger.warning( f"[SUSPICIOUS] {client_ip} - {user_agent[:50]} - {full_path}" ) + else: + access_logger.info( + f"[REQUEST] {client_ip} - {full_path}" + ) # Record access unless the router dependency already handled it # (attack pattern or honeypot path → already recorded by _track_honeypot_request)