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

all: Don't panic if a logger was already initialized #362

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

pentamassiv
Copy link
Collaborator

Calling env_logger::init() will fail if a logger already was initialized. This likely happens when tests are ran. We now try to initialize it but don't panic if it was already initialized.

…tialized. This likely happens when tests are ran. We now try to initialize it but don't panic if it was already initialized.
@pentamassiv pentamassiv merged commit 1353fce into enigo-rs:main Nov 21, 2024
1 check passed
@pentamassiv pentamassiv deleted the try_init_logger branch November 21, 2024 15:26
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.

1 participant