Log per-write and per-command traces at DEBUG, release 0.2.1 #5
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/quiet-info-logging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Home Assistant runs at INFO by default and one poll writes dozens of frames. A connected car produced 3-5k library log lines per hour (about 1.1k per hour even while the car was asleep, from the retry attempts) and tripped HA's "logging too frequently" warning.
Changes
Per-write, per-command and per-connection traces go from INFO to DEBUG:
bleserial: "Writing data to characteristic ...", "BleakClient disconnected (expected)"obd: "Sending command", "Closing connection", "Vehicle not responding"elm327: "Initializing ELM327", "closing port"Unchanged: setup failures ("Set Header ... did not return"), "No valid OBD Messages returned", warnings and errors.
Version bumped to 0.2.1; the auto-tag workflow tags it on merge.
Tests
tests/test_logging_levels.py: write, query (unresponsive vehicle) and close paths emit nothing at INFO, and still trace at DEBUG.