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

Make init_logger more robust #1717

Merged
merged 4 commits into from
Apr 3, 2024
Merged

Conversation

jqnatividad
Copy link
Owner

By adding error-handling.

Also enabled flexi_logger's don't_minimize_extra_stacks feature to prevent the error that was causing panics when initializing the error logger in musl builds.

warning: used binding `_logger_handle` which is prefixed with an underscore. A leading underscore signals that a binding will not be used
   --> src/main.rs:199:54
    |
199 |         Ok((qsv_args, _logger_handle)) => (qsv_args, _logger_handle),
    |                                                      ^^^^^^^^^^^^^^
    |
note: `_logger_handle` is defined here
   --> src/main.rs:199:23
    |
199 |         Ok((qsv_args, _logger_handle)) => (qsv_args, _logger_handle),
    |                       ^^^^^^^^^^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding
    = note: `-W clippy::used-underscore-binding` implied by `-W clippy::pedantic`
    = help: to override `-W clippy::pedantic` add `#[allow(clippy::used_underscore_binding)]`
@jqnatividad jqnatividad merged commit 6097272 into master Apr 3, 2024
14 checks passed
@jqnatividad jqnatividad deleted the 1563-flexilogger-overflow-error branch May 18, 2024 01:56
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.

None yet

1 participant