Add structured logging via stdlib logging module

- INFO -> stdout (journal priority info), WARNING/ERROR -> stderr (err)
- no-validity-window skip for wyby users is now a WARNING (interface bug hint)
- setup_logging(force=True) rebinding handlers, covered by tests
- SyslogIdentifier in systemd unit; README logging section (German)
This commit is contained in:
2026-10-23 09:01:37 +02:00
parent d2a612a37e
commit d034d3088c
4 changed files with 95 additions and 18 deletions
+1
View File
@@ -9,6 +9,7 @@ User=apps
Group=users
WorkingDirectory=/home/apps/glutz-maintenances
ExecStart=/usr/bin/python3 /home/apps/glutz-maintenances/extend_pins.py --apply
SyslogIdentifier=glutz-maintenances
NoNewPrivileges=true
ProtectSystem=full
ProtectHome=read-only