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

Fix/improve native logging lookup #453

Merged
merged 3 commits into from
Jul 7, 2023

Conversation

YOU54F
Copy link
Member

@YOU54F YOU54F commented Jul 6, 2023

this avoids the user having an error for the path lookups, when traversing each of the available binding paths, unless all paths are exhausted.

this way, if the library is available and working fine, users don't see an error in the logs.

if for whatever reason the library isn't loaded, an error message in displayed with some useful tips

if (opts.logLevel) {
setLogLevel(opts.logLevel);
}
const ffi = getFfiLib(opts.logLevel);
Copy link
Member

Choose a reason for hiding this comment

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

that'll do it 😆

} catch (error) {
renderBinaryErrorMessage(error, bindingPath);
// renderBinaryErrorMessage(error, bindingPath);
Copy link
Member

Choose a reason for hiding this comment

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

Will merge and then remove this comment.

@mefellows mefellows merged commit fb4e338 into master Jul 7, 2023
31 checks passed
@mefellows mefellows deleted the fix/improve_native_logging_lookup branch July 7, 2023 01:35
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