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

tests: configure android ffi log filter level. #27

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

cpu
Copy link
Member

@cpu cpu commented Aug 30, 2023

In #21 the android_logger configured in tests/ffi.rs was configured with a log filter, but the filter wasn't configured to accept a log level. The end result is that no log output from the Rust test code was visible in adb logcat.

This commit adds a parse("trace") invocation to the filter so that trace+ log lines are passed through the filter and visible in logcat. See https://docs.rs/android_logger/latest/android_logger/#enabling-logging for more information.

(Thanks to complexspaces for spotting the fix!)

In a previous commit the `android_logger` configured in `tests/ffi.rs`
was configured with a log filter, but the filter wasn't configured to
accept a log level. The end result is that no log output from the Rust
test code was visible in `adb logcat`.

This commit adds a `parse("trace")` invocation to the filter so that
trace+ log lines are passed through the filter and visible in `logcat`.
@cpu cpu self-assigned this Aug 30, 2023
@complexspaces complexspaces merged commit 1a5250c into rustls:main Aug 31, 2023
11 checks passed
@cpu cpu deleted the cpu-fix-android-ffi-log-filter branch August 31, 2023 15:27
@cpu cpu mentioned this pull request Feb 28, 2024
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

2 participants