Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logging level in configs #33

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading