Fixed #14664 -- Logged a warning if MiddlewareNotUsed is raised in DEBUG...

... mode.

https://code.djangoproject.com/ticket/14664
You're right, I was thinking there was some way of formating the exception message from a logging formatter. Ignore my past comment.