CuriousJames / DIYAC

Raspberry Pi Python code & PCB design project to control door access (access control) via a wiegand card and/or keypad reader, handles a doorbell too
6 stars 2 forks source link

Bad load of settings not logged to file #37

Closed CuriousJames closed 4 years ago

CuriousJames commented 4 years ago

If the settings file has bad JSON or can't be found nothing is written to the log file as it doesn't know where the log file exists, in this instance (lack of knowing where to log) it should assume the log file location is 'logFile' in 'log' folder in order to convey the issue to the user.

tame-lx-tech commented 4 years ago

This sort of error is logged to syslog and can also be picked up by systemd status. New feature will push messages to systemd in the status by sdnotify