Skip to content

Commit 1a5250c

Browse files
cpucomplexspaces
authored andcommitted
tests: configure android ffi log filter level.
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`.
1 parent 0d9aa7d commit 1a5250c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tests/ffi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ mod android {
3737
// These can't fail, and even if they did, Android will crash the process like we want.
3838
ANDROID_INIT.call_once(|| {
3939
let log_filter = android_logger::FilterBuilder::new()
40+
.parse("trace")
4041
.filter_module("jni", log::LevelFilter::Off)
4142
.build();
4243

0 commit comments

Comments
 (0)