Skip to content

fix: use try_init() instead of init() for logging#203

Open
hiSandog wants to merge 1 commit intoruvnet:mainfrom
hiSandog:fix/use-try-init-for-logging
Open

fix: use try_init() instead of init() for logging#203
hiSandog wants to merge 1 commit intoruvnet:mainfrom
hiSandog:fix/use-try-init-for-logging

Conversation

@hiSandog
Copy link

@hiSandog hiSandog commented Mar 9, 2026

Summary

  • Use try_init() instead of init() for logging initialization
  • Prevents panic if logging is already initialized
  • Allows the application to run more gracefully in nested contexts

Testing

  • Application starts correctly
  • Logging works as expected

- Prevents panic if logging is already initialized
- Allows the application to run more gracefully in nested contexts
- Using _ = to explicitly ignore the Result return value
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