Add the path that 404'd in the log line

This commit is contained in:
Gregoo 2025-01-17 16:30:22 +01:00
parent 7999572cf1
commit 53b406f722

View File

@ -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: