debug logs for email notifier job

This commit is contained in:
talksik
2026-04-09 15:31:45 -07:00
parent 08f6b95b9b
commit 5ea8476f54
+2
View File
@@ -114,6 +114,7 @@ func runNotificationCycle(
slog.Error("failed to get connected humans", "error", err)
// Continue without presence data — worst case we send an email to someone who's online
} else if ch, ok := presenceResp.Presences["_all"]; ok {
slog.Info("gathered bulk presence", "# of humans present", fmt.Sprintf("%d", len(ch.HumanIds)))
for _, id := range ch.HumanIds {
allOnline[id] = true
}
@@ -170,6 +171,7 @@ func runNotificationCycle(
for humanId, count := range behindCounts {
// Skip online users
if allOnline[humanId] {
slog.Info("human online...skipping email", "humanId", humanId)
continue
}