From 6b657d068ada5744f332167393c1eeda9ce2ce70 Mon Sep 17 00:00:00 2001 From: Fabrice Normandin Date: Mon, 15 Jul 2024 16:34:36 -0400 Subject: [PATCH] Fix logging level in configs Signed-off-by: Fabrice Normandin --- project/configs/algorithm/lr_scheduler/__init__.py | 2 +- project/configs/algorithm/optimizer/__init__.py | 2 +- project/utils/hydra_utils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/configs/algorithm/lr_scheduler/__init__.py b/project/configs/algorithm/lr_scheduler/__init__.py index 54bfd7a6..8383829e 100644 --- a/project/configs/algorithm/lr_scheduler/__init__.py +++ b/project/configs/algorithm/lr_scheduler/__init__.py @@ -55,7 +55,7 @@ def add_configs_for_all_torch_schedulers(): and _scheduler_type not in configured_schedulers } for scheduler_name, scheduler_type in missing_torch_schedulers.items(): - _logger.warning(f"Making a config for {scheduler_type=}") + _logger.debug(f"Making a config for {scheduler_type=}") _config = make_config_and_store(scheduler_type, store=lr_scheduler_group_store) diff --git a/project/configs/algorithm/optimizer/__init__.py b/project/configs/algorithm/optimizer/__init__.py index 99900e02..53238d00 100644 --- a/project/configs/algorithm/optimizer/__init__.py +++ b/project/configs/algorithm/optimizer/__init__.py @@ -38,7 +38,7 @@ def add_configs_for_all_torch_optimizers(): and _optimizer_type not in configured_schedulers } for scheduler_name, scheduler_type in missing_torch_schedulers.items(): - _logger.warning(f"Making a config for {scheduler_type=}") + _logger.debug(f"Making a config for {scheduler_type=}") _config = make_config_and_store(scheduler_type, store=optimizers_group_store) diff --git a/project/utils/hydra_utils.py b/project/utils/hydra_utils.py index 1218240d..b3d9b2c1 100644 --- a/project/utils/hydra_utils.py +++ b/project/utils/hydra_utils.py @@ -434,6 +434,6 @@ def make_config_and_store[Target]( **overrides, ) name_of_config_in_store = target.__name__ - logger.warning(f"Created a config entry {name_of_config_in_store} for {target.__qualname__}") + logger.debug(f"Created a config entry {name_of_config_in_store} for {target.__qualname__}") store(config, name=name_of_config_in_store) return config