Skip to content

Commit

Permalink
Fix logging level in configs
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <[email protected]>
  • Loading branch information
lebrice committed Jul 15, 2024
1 parent 0d35a38 commit 6b657d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project/configs/algorithm/lr_scheduler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion project/configs/algorithm/optimizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion project/utils/hydra_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6b657d0

Please sign in to comment.