Skip to content

Use logger.warning instead of optuna_warn for lock-acquisition delay notifications#6400

Merged
y0z merged 3 commits intooptuna:masterfrom
sawa3030:add-warning-for-journal-lock-2
Jan 16, 2026
Merged

Use logger.warning instead of optuna_warn for lock-acquisition delay notifications#6400
y0z merged 3 commits intooptuna:masterfrom
sawa3030:add-warning-for-journal-lock-2

Conversation

@sawa3030
Copy link
Copy Markdown
Collaborator

Motivation

Follow-up to #6361. This message is not something users can fix by changing their code, but it’s still useful to note as an event. Per Python’s logging guide, this should be logged via logger.warning() rather than raised with warnings.warn().

Description of the changes

  • Replace warnings.warn() with logger.warning() for the lock-acquisition delay notification.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-fix Change that does not change the behavior, such as code refactoring.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants