Custom logic has been implemented to enable/disable monitoring. This is redundant, as the tracing crate, combined with the RUST_LOG environment variable, already provides this functionality out of the box. Using the standard approach is simpler and more powerful.
To fix:
- Remove the custom monitoring enable/disable flags and logic.
- Control monitoring output by setting
RUST_LOG to the desired level (e.g., RUST_LOG=debug, RUST_LOG=info).
- Ensure all monitoring code uses
tracing levels correctly.
Migrated from Linear: REP-11
Custom logic has been implemented to enable/disable monitoring. This is redundant, as the
tracingcrate, combined with theRUST_LOGenvironment variable, already provides this functionality out of the box. Using the standard approach is simpler and more powerful.To fix:
RUST_LOGto the desired level (e.g.,RUST_LOG=debug,RUST_LOG=info).tracinglevels correctly.Migrated from Linear: REP-11