docs: correct the log level env var in AGENTS.md - #490
Open
0xFlo wants to merge 1 commit into
Open
Conversation
feschber
force-pushed
the
docs/log-env-var
branch
from
August 31, 2026 09:44
c71b86f to
57e2688
Compare
AGENTS.md documents RUST_LOG for debug logging, but main.rs reads LAN_MOUSE_LOG_LEVEL via Env::default().filter_or, so setting RUST_LOG silently has no effect and the log level stays at info.
feschber
force-pushed
the
docs/log-env-var
branch
from
August 31, 2026 11:20
57e2688 to
95c94a5
Compare
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.
AGENTS.md tells contributors to use
RUST_LOG=lan_mouse=debugfor debug logging, butsrc/main.rs:45reads a different variable:Env::default().filter_or(name, default)usesnameas the filter variable, soRUST_LOGis never consulted. Setting it has no effect and the level stays atinfo, silently.Noticed while debugging a connection issue, where the missing trace output cost some time before I checked
main.rs.