Opened 8 years ago

Last modified 8 years ago

#26504 closed Cleanup/optimization

Warnings logged for page "Not Found" before redirect to language-prefixed page — at Version 1

Reported by: cworth-gh Owned by:
Component: Error reporting Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by cworth-gh)

I've noticed that I've been getting warnings logged for things like:

Not Found: /

This results from accessing a path of "/" which is getting redirected by LocaleMiddleware to "/en/". So, in fact there is never any actual "page not found" happening here, but the code is logging based on a temporary 404 exception that the LocaleMiddleware will touch up into a redirect response.

I admit that I'm a little OCD when it comes to my log files, and I prefer them to be warning-free when nothing wrong is happening.

I've got a commit series all ready to fix this bug, which I'll try to attach to this ticket in the appropriate way, (but please let me know if I get any of the details wrong).

The pull request is here:

https://github.com/django/django/pull/6453

Change History (1)

comment:1 by cworth-gh, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top