Unverified Commit b7d59ffc authored by Robert Shaw's avatar Robert Shaw Committed by GitHub
Browse files

[UX] Remove NoOpOffloader log (#35678)


Signed-off-by: default avatarRobert Shaw <robshaw@redhat.com>
Co-authored-by: default avatarRobert Shaw <robshaw@redhat.com>
parent 5569f521
...@@ -103,7 +103,12 @@ def set_offloader(instance: BaseOffloader) -> None: ...@@ -103,7 +103,12 @@ def set_offloader(instance: BaseOffloader) -> None:
"""Set the global offloader instance.""" """Set the global offloader instance."""
global _instance global _instance
_instance = instance _instance = instance
logger.info("Offloader set to %s", type(instance).__name__) if isinstance(instance, NoopOffloader):
logger.debug_once(
"Offloader set to NoopOffloader (no offloading).", scope="local"
)
else:
logger.info_once("Offloader set to %s", type(instance).__name__, scope="local")
def create_offloader(offload_config: "OffloadConfig") -> BaseOffloader: def create_offloader(offload_config: "OffloadConfig") -> BaseOffloader:
......
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