Ticket #14800: ticket-14800.patch
File ticket-14800.patch, 874 bytes (added by , 14 years ago) |
---|
-
django/core/servers/basehttp.py
614 614 handler.run(self.server.get_app()) 615 615 616 616 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): 619 619 return 620 620 621 if not settings.LOG_FAVICON_REQUESTS and self.path == '/favicon.ico': 622 return 623 621 624 msg = "[%s] %s\n" % (self.log_date_time_string(), format % args) 622 625 623 626 # Utilize terminal colors, if available