Files
harmony/fleet/harmony-fleet-agent
Jean-Gabriel Gill-Couture 9baae65171
Some checks failed
Run Check Script / check (pull_request) Failing after 1m39s
chore(fleet-agent): default tracing filter to info
`EnvFilter::from_default_env()` returns the empty filter when
`RUST_LOG` isn't set, which silences every log line. The systemd
unit installed by `FleetDeviceSetupScore` does pass
`RUST_LOG=info`, but a hand-launched binary, an overridden unit, or
any other invocation path produced a silent agent — including the
dev-on-device run the user just hit.

Switches to `try_from_default_env().unwrap_or_else(|_|
EnvFilter::new("info"))` so:

* RUST_LOG unset → info-level by default (what the operator wants
  the moment they look for logs).
* RUST_LOG set → respected as before (`RUST_LOG=debug` for
  troubleshooting, `RUST_LOG=warn` if it's too chatty, etc.).

The systemd unit's existing `Environment=RUST_LOG=info` line is
left in place — explicit + harmless, and lets a customer toggle
the unit's verbosity without rebuilding the binary.
2026-05-06 11:17:21 -04:00
..