diff options
| author | Jannis Leidel <jannis@leidel.info> | 2012-02-09 18:58:36 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2012-02-09 18:58:36 +0000 |
| commit | f0a1633425d5afdaec85e188ce67d647e218ff23 (patch) | |
| tree | 5953ea1fab57bb42d396c7fe111db6bc58282a99 /django/middleware/common.py | |
| parent | c609b792f74948bc4e485ebfcb456ef1b6f8ce0a (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/middleware/common.py')
| -rw-r--r-- | django/middleware/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/middleware/common.py b/django/middleware/common.py index 4dd2e14652..aaa094d15a 100644 --- a/django/middleware/common.py +++ b/django/middleware/common.py @@ -42,7 +42,7 @@ class CommonMiddleware(object): if 'HTTP_USER_AGENT' in request.META: for user_agent_regex in settings.DISALLOWED_USER_AGENTS: if user_agent_regex.search(request.META['HTTP_USER_AGENT']): - logger.warning('Forbidden (User agent): %s' % request.path, + logger.warning('Forbidden (User agent): %s', request.path, extra={ 'status_code': 403, 'request': request |
