Skip to content

docs: correct the log level env var in AGENTS.md - #490

Open
0xFlo wants to merge 1 commit into
feschber:mainfrom
0xFlo:docs/log-env-var
Open

docs: correct the log level env var in AGENTS.md#490
0xFlo wants to merge 1 commit into
feschber:mainfrom
0xFlo:docs/log-env-var

Conversation

@0xFlo

@0xFlo 0xFlo commented Aug 30, 2026

Copy link
Copy Markdown

AGENTS.md tells contributors to use RUST_LOG=lan_mouse=debug for debug logging, but src/main.rs:45 reads a different variable:

let env = Env::default().filter_or("LAN_MOUSE_LOG_LEVEL", "info");

Env::default().filter_or(name, default) uses name as the filter variable, so RUST_LOG is never consulted. Setting it has no effect and the level stays at info, silently.

Noticed while debugging a connection issue, where the missing trace output cost some time before I checked main.rs.

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.
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.

1 participant