Updated logging calls to use arguments instead of string interpolation.

This commit is contained in:
François Freitag 2020-05-13 07:12:18 +00:00 committed by GitHub
parent 05ed7104c0
commit 7cd88b3fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)