﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26504	"Prevent logging warnings for page ""Not Found"" before redirect to language-prefixed page"	cworth-gh	Tim Graham <timograham@…>	"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"	Cleanup/optimization	closed	Error reporting	dev	Normal	fixed			Accepted	1	0	0	0	0	0
