Log level of _optuna_logger
not in sync with Optuna's logger
#20
Labels
contribution-welcome
This issue welcomes contributions.
In
kurobako/solver/optuna.py
,_optuna_logger
is used for outputting optimization progress. However, although_optuna_logger
is created withoptuna.logging.getLogger(__name__)
, the__name__
does not belong inoptuna
, returning a separate logger from Optuna's logging system. Thus_optuna_logger
's log level does not change byoptuna.logging._configure_library_root_logger()
.This results in invisible logs when the trials are pruned, because no handler is set for
_optuna_logger
'sinfo
level. When a trial succeeds,_study._log_completed_trial
is called, which in turn calls logger created inside Optuna, thus the log is outputted. However, this is not a good design either, because_log_completed_trial
is a private member and is subject to future change.We suggest the following changes:
_study._log_completed_trial
The text was updated successfully, but these errors were encountered: