Unverified Commit 0168f69e authored by Ning Xie's avatar Ning Xie Committed by GitHub
Browse files

[Misc] Remove unnecessary parentheses from log statements (#28897)


Signed-off-by: default avatarAndy Xie <andy.xning@gmail.com>
parent 083cf326
......@@ -597,7 +597,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
mi_dict = json.load(file)
except FileNotFoundError:
logger.debug(
("Cached model info file for class %s.%s not found"),
"Cached model info file for class %s.%s not found",
self.module_name,
self.class_name,
)
......@@ -605,7 +605,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
if mi_dict["hash"] != module_hash:
logger.debug(
("Cached model info file for class %s.%s is stale"),
"Cached model info file for class %s.%s is stale",
self.module_name,
self.class_name,
)
......@@ -615,7 +615,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
return _ModelInfo(**mi_dict["modelinfo"])
except Exception:
logger.debug(
("Cached model info for class %s.%s error. "),
"Cached model info for class %s.%s error. ",
self.module_name,
self.class_name,
)
......@@ -650,14 +650,14 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
mi = self._load_modelinfo_from_cache(module_hash)
if mi is not None:
logger.debug(
("Loaded model info for class %s.%s from cache"),
"Loaded model info for class %s.%s from cache",
self.module_name,
self.class_name,
)
return mi
else:
logger.debug(
("Cache model info for class %s.%s miss. Loading model instead."),
"Cache model info for class %s.%s miss. Loading model instead.",
self.module_name,
self.class_name,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment