[UX] Remove NoOpOffloader log (#35678)
Signed-off-by: Robert Shaw <robshaw@redhat.com> Co-authored-by: Robert Shaw <robshaw@redhat.com>
This commit is contained in:
co-authored by
Robert Shaw
parent
5569f5218d
commit
b7d59ffce2
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user