Delay string interpolations at logging calls
This is a general best practice which brings (slight) performance improvements and also structured logging. Enable the hacking check to enforce it. Change-Id: I1cc4ed756f044c2bb564e091c6474b2894583bed Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -36,7 +36,7 @@ OnMissingEntrypointsCallbackT = Callable[[Iterable[str]], None]
|
||||
|
||||
|
||||
def warning_on_missing_entrypoint(missing_names: Iterable[str]) -> None:
|
||||
LOG.warning('Could not load {}'.format(', '.join(missing_names)))
|
||||
LOG.warning('Could not load %s', ', '.join(missing_names))
|
||||
|
||||
|
||||
class NamedExtensionManager(ExtensionManager[T]):
|
||||
|
||||
Reference in New Issue
Block a user