brchri / tesla-geogdo

A lightweight app that will operate your smart garage door openers (GDOs) based on the location of a defined tracker, automatically closing when you leave, and opening when you return. Supports multiple vehicles, trackers, geofence types, and smart GDO devices.
GNU General Public License v3.0
17 stars 2 forks source link

fix: lwt error and standardize log level length #21

Closed brchri closed 6 months ago

brchri commented 6 months ago

Complex topics that publish _type: lwt would cause geogdo to log errors about not being able to parse lat/lng from the json payload. While a graceful error, this caused noise. This commit checks for _type: lwt and logs a debug message instead of an error.

Also standardizing the length of log level status in log line outputs to 3 chars (e.g. INFO -> INF, DEBUG -> DBG, etc).

Finally, standardizes line endings to LF.