Ticket #14800: ticket-14800.patch

File ticket-14800.patch, 874 bytes (added by kc9ddi, 14 years ago)
  • django/core/servers/basehttp.py

     
    614614        handler.run(self.server.get_app())
    615615
    616616    def log_message(self, format, *args):
    617         # Don't bother logging requests for admin images or the favicon.
    618         if self.path.startswith(self.admin_media_prefix) or self.path == '/favicon.ico':
     617        from django.conf import settings
     618        if not settings.LOG_ADMIN_MEDIA_REQUESTS and self.path.startswith(self.admin_media_prefix):
    619619            return
    620620
     621        if not settings.LOG_FAVICON_REQUESTS and self.path == '/favicon.ico':
     622            return
     623
    621624        msg = "[%s] %s\n" % (self.log_date_time_string(), format % args)
    622625
    623626        # Utilize terminal colors, if available
Back to Top