Skip to content

Commit

Permalink
Log successfully sent notification
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Dec 13, 2024
1 parent fc46852 commit e46d9b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ee/desktop/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,13 +437,17 @@ func (r *DesktopUsersProcessesRunner) SendNotification(n notify.Notification) er

atLeastOneSuccess := false
errs := make([]error, 0)
for _, proc := range r.uidProcs {
for uid, proc := range r.uidProcs {
client := client.New(r.userServerAuthToken, proc.socketPath)
if err := client.Notify(n); err != nil {
errs = append(errs, err)
continue
}

r.slogger.Log(context.TODO(), slog.LevelDebug,
"sent notification",
"uid", uid,
)
atLeastOneSuccess = true
}

Expand Down

0 comments on commit e46d9b3

Please sign in to comment.