]> git.giacomolli.uk - onechat/commit
Log daemon events at their slog levels
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Tue, 10 Nov 2026 01:33:22 +0000 (22:33 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Tue, 10 Nov 2026 01:57:02 +0000 (22:57 -0300)
commit790279faf0fda789d93a75f6f5996e65d5de4a18
tree789a08939fa984cbd3e5dd551ca29a69b7e100fb
parent4c199e7d93b6a4529ed5956807911b5f6c5489a7
Log daemon events at their slog levels

Each daemon part gives its event, level, and raw attributes to the
shared handler. Normal events use info, recoverable failures use
warning, and lost data or stopped work uses error. Outages still log
only their start and end, and probe and rebuild runs discard their
summary log output.
22 files changed:
daemon.go
daemon_log.go
daemon_log_helper_test.go [new file with mode: 0644]
daemon_test.go
discard_log_helper_test.go
memory.go
memory_test.go
probe.go
rebuild.go
schedule.go
schedule_test.go
subagent_run.go
subagent_run_test.go
telegram.go
telegram_test.go
turn.go
turn_test.go
whatsapp.go
whatsapp_fake_helper_test.go
whatsapp_groups.go
whatsapp_groups_test.go [new file with mode: 0644]
whatsapp_test.go