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

Log the cause why native transport libs are not loaded #2226

Merged
merged 1 commit into from
May 27, 2022

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

The cause is logged only when users explicitly set
-Dio.servicetalk.transport.netty.requireNativeLibs=true. Logging cause
in all cases simplifies debugging of the issue. Looks like we accidentally
removed the cause in #2006.

Modifications:

  • Include the cause in NativeTransportUtils log message;

Result:

Users see the root cause why native libs are not loaded.

Motivation:

The cause is logged only when users explicitly set
`-Dio.servicetalk.transport.netty.requireNativeLibs=true`. Logging cause
in all cases simplifies debugging of the issue.

Modifications:

- Include the cause in `NativeTransportUtils` log message;

Result:

Users see the root cause why native libs are not loaded.
@idelpivnitskiy idelpivnitskiy requested a review from Scottmitch May 26, 2022 19:48
@idelpivnitskiy idelpivnitskiy self-assigned this May 27, 2022
@idelpivnitskiy idelpivnitskiy merged commit fc53573 into apple:main May 27, 2022
@idelpivnitskiy idelpivnitskiy deleted the native-lib-logging branch May 27, 2022 18:11
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.

3 participants