added logging
This commit is contained in:
@@ -74,6 +74,13 @@ Set `URL_PREFIX=/w` to mount the dashboard, static assets, and every API endpoin
|
||||
below `/w`; leave it empty to serve from the site root. When a prefix is set,
|
||||
open <http://localhost:5000/w/> instead.
|
||||
|
||||
`LOG_FILE` selects a rotating application log (by default
|
||||
`RRD_FOLDER/netatmo_service.log`). Every Netatmo HTTP attempt records success or
|
||||
failure, HTTP status, endpoint, and duration without credentials. Collector,
|
||||
Flask, uncaught main-thread, and uncaught worker-thread exceptions are written to
|
||||
the same log. `LOG_MAX_BYTES` defaults to 5 MiB and `LOG_BACKUP_COUNT` to five.
|
||||
The service account must have write permission on the log directory.
|
||||
|
||||
## HTTP API
|
||||
|
||||
```text
|
||||
|
||||
Reference in New Issue
Block a user