feat(tracing): add MUJINA_LOG filter variable#79
Merged
Conversation
Add MUJINA_LOG, a log filter for Mujina's own output. Interpret its
directives relative to Mujina's crate, overriding RUST_LOG and the
built-in defaults. Give RUST_LOG its standard Rust meaning: a
directive that names a crate adds to the built-in defaults, and a
bare level takes full control of the filter.
MUJINA_LOG=trace trace Mujina, nothing more
MUJINA_LOG=asic::bm13xx=trace module names as the log shows them
RUST_LOG=nusb=trace trace a dependency, defaults kept
RUST_LOG=trace trace everything, as stock Rust
Previously the filter appended a bare RUST_LOG level after the
defaults, where the per-crate default outranked it by specificity:
RUST_LOG=trace promoted third-party crates to trace but left Mujina
capped at info, exactly backwards from what a user asking for a
trace log wants.
Update the startup hint, environment help, and docs to recommend
MUJINA_LOG.
rkuester
force-pushed
the
feat-tracing-mujina-log
branch
from
July 15, 2026 02:49
b2ab94a to
0c19e0f
Compare
rkuester
enabled auto-merge
July 15, 2026 02:50
|
yeah, confirmed this makes investigating logs much easier. i was using it while chasing down an issue around the power controller on a bitaxe gamma 602, and having targeted Mujina traces (for my case) without turning the rest of the world into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add MUJINA_LOG, a log filter for Mujina's own output. Interpret its directives relative to Mujina's crate, overriding RUST_LOG and the built-in defaults. Give RUST_LOG its standard Rust meaning: a directive that names a crate adds to the built-in defaults, and a bare level takes full control of the filter.
Previously the filter appended a bare RUST_LOG level after the defaults, where the per-crate default outranked it by specificity: RUST_LOG=trace promoted third-party crates to trace but left Mujina capped at info, exactly backwards from what a user asking for a trace log wants.
Update the startup hint, environment help, and docs to recommend MUJINA_LOG.