1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #17358 -- Updated logging calls to use official syntax for arguments instead of string interpolation. Thanks, spulec.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel
2012-02-09 18:58:36 +00:00
parent c609b792f7
commit f0a1633425
7 changed files with 15 additions and 15 deletions

View File

@@ -136,7 +136,7 @@ class BaseHandler(object):
response = response.render()
except http.Http404, e:
logger.warning('Not Found: %s' % request.path,
logger.warning('Not Found: %s', request.path,
extra={
'status_code': 404,
'request': request
@@ -155,7 +155,7 @@ class BaseHandler(object):
signals.got_request_exception.send(sender=self.__class__, request=request)
except exceptions.PermissionDenied:
logger.warning(
'Forbidden (Permission denied): %s' % request.path,
'Forbidden (Permission denied): %s', request.path,
extra={
'status_code': 403,
'request': request
@@ -208,7 +208,7 @@ class BaseHandler(object):
if settings.DEBUG_PROPAGATE_EXCEPTIONS:
raise
logger.error('Internal Server Error: %s' % request.path,
logger.error('Internal Server Error: %s', request.path,
exc_info=exc_info,
extra={
'status_code': 500,