From 53b406f722b2e22b96e3ed3f4444276952701594 Mon Sep 17 00:00:00 2001 From: Gregoo Date: Fri, 17 Jan 2025 16:30:22 +0100 Subject: [PATCH] Add the path that 404'd in the log line --- bricktracker/views/error.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bricktracker/views/error.py b/bricktracker/views/error.py index 1cce1c0..c9f47e6 100644 --- a/bricktracker/views/error.py +++ b/bricktracker/views/error.py @@ -126,8 +126,9 @@ def error_404( **kwargs, ) -> Tuple[str | Response, int]: # Warning - logger.warning('Not found: {error}'.format( + logger.warning('Not found: {error} (path: {path})'.format( error=str(error), + path=request.path, )) if json: