debug logs for email notifier job
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user