mirror of https://github.com/django/django.git
Updated logging calls to use arguments instead of string interpolation.
This commit is contained in:
parent
05ed7104c0
commit
7cd88b3fec
|
@ -117,7 +117,7 @@ class BaseHandler:
|
||||||
return sync_to_async(method, thread_sensitive=True)
|
return sync_to_async(method, thread_sensitive=True)
|
||||||
elif method_is_async:
|
elif method_is_async:
|
||||||
if debug:
|
if debug:
|
||||||
logger.debug('Asynchronous %s adapted.' % name)
|
logger.debug('Asynchronous %s adapted.', name)
|
||||||
return async_to_sync(method)
|
return async_to_sync(method)
|
||||||
return method
|
return method
|
||||||
|
|
||||||
|
|
|
@ -145,7 +145,7 @@ def iter_modules_and_files(modules, extra_files):
|
||||||
continue
|
continue
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
# Network filesystems may return null bytes in file paths.
|
# 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
|
continue
|
||||||
results.add(resolved_path)
|
results.add(resolved_path)
|
||||||
return frozenset(results)
|
return frozenset(results)
|
||||||
|
|
Loading…
Reference in New Issue