summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Freitag <mail@franek.fr>2020-05-13 07:12:18 +0000
committerGitHub <noreply@github.com>2020-05-13 09:12:18 +0200
commit7cd88b3fece1c17f5ee905c78222a28594fee215 (patch)
treeee0def3667098e9ebe1003d8ea4dc2611ce87708
parent05ed7104c0bc069352b2cee85ab918e48ee73cbe (diff)
Updated logging calls to use arguments instead of string interpolation.
-rw-r--r--django/core/handlers/base.py2
-rw-r--r--django/utils/autoreload.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py
index e7fbaf594e..de0dd6f018 100644
--- a/django/core/handlers/base.py
+++ b/django/core/handlers/base.py
@@ -117,7 +117,7 @@ class BaseHandler:
return sync_to_async(method, thread_sensitive=True)
elif method_is_async:
if debug:
- logger.debug('Asynchronous %s adapted.' % name)
+ logger.debug('Asynchronous %s adapted.', name)
return async_to_sync(method)
return method
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py
index 845c46c8d4..873f3d8367 100644
--- a/django/utils/autoreload.py
+++ b/django/utils/autoreload.py
@@ -145,7 +145,7 @@ def iter_modules_and_files(modules, extra_files):
continue
except ValueError as e:
# Network filesystems may return null bytes in file paths.
- logger.debug('"%s" raised when resolving path: "%s"' % (str(e), path))
+ logger.debug('"%s" raised when resolving path: "%s"', e, path)
continue
results.add(resolved_path)
return frozenset(results)