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

Clear log handlers before setup #1603

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

yfyeung
Copy link
Collaborator

@yfyeung yfyeung commented Apr 23, 2024

This PR adds functionality to clear existing log handlers before setting up new ones. This feature addresses issues in environments like torchrun, where default loggers cannot be easily overridden. By clearing previous handlers, we enable full customization and flexibility of logging configurations, ensuring that setups can be dynamically adjusted without being constrained by pre-existing environment settings.

Copy link
Collaborator

@JinZr JinZr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JinZr JinZr merged commit 368b7d1 into k2-fsa:master Apr 24, 2024
203 checks passed
@yfyeung yfyeung deleted the fix/loghandler branch April 24, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants