ESPresense-companion icon indicating copy to clipboard operation
ESPresense-companion copied to clipboard

Feature Request: Logging Level Choice

Open dxmnkd316 opened this issue 5 months ago • 1 comments

I greatly appreciate all the work that's gone into both the core app and Companion. This is a really neat system that has a ton of potential. That said, I have a somewhat lower priority feature request. Hopefully this is the right place to submit those.

Now that I finally have my system setup and running, I think it would be nice to see an option to reduce or increase the logging level in the Companion to help with calibration/troubleshooting vs. normal operation. Right now my log looks like this:

[10:00:12 INF] HTTP GET /api/state/calibration responded 200 in 1.5912 ms
[10:00:13 INF] HTTP GET /api/state/calibration responded 200 in 0.9463 ms
[10:00:14 INF] HTTP GET /api/state/calibration responded 200 in 0.8854 ms
[10:00:15 INF] HTTP GET /api/state/calibration responded 200 in 0.9576 ms
[10:00:16 INF] HTTP GET /api/state/calibration responded 200 in 0.9325 ms
[10:00:16 INF] HTTP GET /_app/version.json responded 200 in 0.3717 ms
[10:00:17 INF] HTTP GET /api/state/calibration responded 200 in 0.9604 ms
[10:00:18 INF] HTTP GET /api/state/calibration responded 200 in 1.1026 ms
[10:00:19 INF] HTTP GET /api/state/calibration responded 200 in 0.9236 ms
[10:00:20 INF] HTTP GET /api/state/calibration responded 200 in 2.2351 ms
[10:00:21 INF] HTTP GET /api/state/calibration responded 200 in 0.9437 ms
[10:00:22 INF] HTTP GET /_app/version.json responded 200 in 0.4430 ms
[10:00:22 INF] HTTP GET /api/state/calibration responded 200 in 1.1701 ms
[10:00:24 INF] HTTP GET /api/state/calibration responded 200 in 14.3125 ms
[10:00:24 INF] HTTP GET /api/state/calibration responded 200 in 1.0162 ms
[10:00:42 INF] HTTP GET /_app/version.json responded 200 in 0.3343 ms
[10:00:42 INF] HTTP GET /api/state/calibration responded 200 in 3.4593 ms
[10:01:42 INF] HTTP GET /api/state/calibration responded 200 in 0.9559 ms

But I would like to see an option to only show calibration runs like this:

[10:19:11 INF] Optimizer Rx Adj Rssi              found better results, rms 11.211<13.086
[10:19:11 INF] Optimizer set spare_office         to Absorption: 3.25 RxAdj: 18 Error: 14.32864436929275
[10:19:11 INF] Optimizer set bedroom              to Absorption: 3.25 RxAdj: 20 Error: 6.864019767155424
[10:19:11 INF] Optimizer set living_room          to Absorption: 3.25 RxAdj: 20 Error: 9.422625777003502
[10:19:11 INF] Optimizer set redact_s_office        to Absorption: 3.25 RxAdj: 03 Error: 15.872049594981899
[10:19:11 INF] Optimizer set basement_living_room to Absorption: 3.25 RxAdj: 08 Error: 11.536590187448445
[10:19:11 INF] Optimizer set redact2_s_office       to Absorption: 3.25 RxAdj: 07 Error: 3.943304437023126
[10:19:11 INF] Optimizer Absorption Avg           found better results, rms 6.618<11.211
[10:19:11 INF] Optimizer set spare_office         to Absorption: 1.50 RxAdj: null Error: null
[10:19:11 INF] Optimizer set bedroom              to Absorption: 2.27 RxAdj: null Error: null
[10:19:11 INF] Optimizer set living_room          to Absorption: 2.23 RxAdj: null Error: null
[10:19:11 INF] Optimizer set redact_s_office        to Absorption: 1.94 RxAdj: null Error: null
[10:19:11 INF] Optimizer set basement_living_room to Absorption: 2.48 RxAdj: null Error: null
[10:19:11 INF] Optimizer set redact2_s_office       to Absorption: 2.71 RxAdj: null Error: null
[10:19:11 INF] Optimizer Absorption NelderMead    found worse  results, rms 9.334>6.618

Maybe even a further reduction to errors only as an option once I'm happy with the calibration.

Thanks again for all the hard work on this.

Edit: Wait, I'm an idiot. I see it's in there. I'm a bit confused though. Does Companion set its log level from MQTT? I must be missing something here.

dxmnkd316 avatar Feb 13 '24 16:02 dxmnkd316