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

Signed-off-by: Andy Xie <andy.xning@gmail.com>
This commit is contained in:
Ning Xie 2025-11-18 12:33:46 +08:00 committed by GitHub
parent 083cf326dc
commit 0168f69e50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -597,7 +597,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
mi_dict = json.load(file) mi_dict = json.load(file)
except FileNotFoundError: except FileNotFoundError:
logger.debug( 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.module_name,
self.class_name, self.class_name,
) )
@ -605,7 +605,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
if mi_dict["hash"] != module_hash: if mi_dict["hash"] != module_hash:
logger.debug( 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.module_name,
self.class_name, self.class_name,
) )
@ -615,7 +615,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
return _ModelInfo(**mi_dict["modelinfo"]) return _ModelInfo(**mi_dict["modelinfo"])
except Exception: except Exception:
logger.debug( logger.debug(
("Cached model info for class %s.%s error. "), "Cached model info for class %s.%s error. ",
self.module_name, self.module_name,
self.class_name, self.class_name,
) )
@ -650,14 +650,14 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
mi = self._load_modelinfo_from_cache(module_hash) mi = self._load_modelinfo_from_cache(module_hash)
if mi is not None: if mi is not None:
logger.debug( logger.debug(
("Loaded model info for class %s.%s from cache"), "Loaded model info for class %s.%s from cache",
self.module_name, self.module_name,
self.class_name, self.class_name,
) )
return mi return mi
else: else:
logger.debug( 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.module_name,
self.class_name, self.class_name,
) )