Horde: Catch and log exceptions from issue report sending

#rb Ben.Marsh
#preflight none

[CL 22336000 by carl bystrom in ue5-main branch]
This commit is contained in:
carl bystrom
2022-10-04 15:03:34 -04:00
parent d41483a2c0
commit cecf75738d

View File

@@ -742,7 +742,15 @@ namespace Horde.Build.Notifications
{
foreach (INotificationSink sink in _sinks)
{
await sink.SendIssueReportAsync(report);
try
{
await sink.SendIssueReportAsync(report);
}
catch (Exception e)
{
string streamsWithChannel = String.Join(", ", report.Reports.Select(x => x.Stream.Name + " " + x.TriageChannel));
_logger.LogError(e, "Failed sending issue report to {Channel} for streams/channels {StreamsWithChannels})", report.Channel, streamsWithChannel);
}
}
}
}