summaryrefslogtreecommitdiff
path: root/django/core
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2012-02-09 18:58:36 +0000
committerJannis Leidel <jannis@leidel.info>2012-02-09 18:58:36 +0000
commitf0a1633425d5afdaec85e188ce67d647e218ff23 (patch)
tree5953ea1fab57bb42d396c7fe111db6bc58282a99 /django/core
parentc609b792f74948bc4e485ebfcb456ef1b6f8ce0a (diff)
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
Diffstat (limited to 'django/core')
-rw-r--r--django/core/handlers/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py
index 3606e1853c..a0918bfc41 100644
--- a/django/core/handlers/base.py
+++ b/django/core/handlers/base.py
@@ -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,