Closed Bug 1643747 Opened 4 years ago Closed 4 years ago

Setting RUST_LOG=crate=debug on android will emit debug logs for all crates

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: kats, Assigned: kats)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Do an android build, and run e.g. ./mach mochitest --setenv RUST_LOG=webrender=debug --enable-webrender --keep-open=false gfx/layers/apz/test/mochitest/test_group_touchevents-3.html. In another terminal, watch adb logcat (or pipe it to a file or whatever)

Expected:
Debug-level logs from webrender are emitted to logcat, but not from other modules

Actual:
All sorts of debug-level logs show up, notably from stylo (e.g. style::invalidation::stylesheets or style::stylist tags).

I suspect that this is because the log_out implementation on android here doesn't do any checks and bypasses the checks that env_logger does on non-Android.

Assignee: nobody → kats
Status: NEW → ASSIGNED

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Panning and Zooming
Component: Panning and Zooming → XPCOM
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6adfcf57b6cb
Filter rust logging on android by the underlying env_logger's filters. r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: