Эх сурвалжийг харах

fix(state): improve notification error logging

ayn2op 4 сар өмнө
parent
commit
88c7a75222
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      cmd/state.go

+ 1 - 1
cmd/state.go

@@ -150,7 +150,7 @@ func onMessageCreate(message *gateway.MessageCreateEvent) {
 	}
 
 	if err := notifications.Notify(discordState, message, app.cfg); err != nil {
-		slog.Error("Notification failed", "err", err)
+		slog.Error("failed to notify", "err", err, "channel_id", message.ChannelID, "message_id", message.ID)
 	}
 }