Skip to content

Commit 2310c40

Browse files
authored
Add untruncated incident name to email body
1 parent b267156 commit 2310c40

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/Server/OneTrueError.App/Core/Notifications/Tasks/SendIncidentEmail.cs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,32 +60,35 @@ public async Task SendAsync(string idOrEmailAddress, IncidentSummaryDTO incident
6060
msg.Subject = "ReOpened: " + shortName;
6161
msg.TextBody = string.Format(@"Incident: {0}
6262
Report url: {0}/report/{1}
63-
Exception: {2}
63+
Description: {2}
64+
Exception: {3}
6465
65-
{3}
66-
", baseUrl, report.Id, report.Exception.FullName, report.Exception.StackTrace);
66+
{4}
67+
", baseUrl, report.Id, incident.Name, report.Exception.FullName, report.Exception.StackTrace);
6768
}
6869
else if (incident.ReportCount == 1)
6970
{
7071
msg.Subject = "New: " + shortName;
7172
msg.TextBody = string.Format(@"Incident: {0}
72-
Exception: {1}
73+
Description: {1}
74+
Exception: {2}
7375
74-
{2}", baseUrl, report.Exception.FullName, report.Exception.StackTrace);
76+
{3}", baseUrl, incident.Name, report.Exception.FullName, report.Exception.StackTrace);
7577
}
7678
else
7779
{
7880
msg.Subject = "Updated: " + shortName;
7981
msg.TextBody = string.Format(@"Incident: {0}
8082
Report url: {0}/report/{1}
81-
Exception: {2}
83+
Description: {2}
84+
Exception: {3}
8285
83-
{3}
84-
", baseUrl, report.Id, report.Exception.FullName, report.Exception.StackTrace);
86+
{4}
87+
", baseUrl, report.Id, incident.Name, report.Exception.FullName, report.Exception.StackTrace);
8588
}
8689

8790
var emailCmd = new SendEmail(msg);
8891
await _commandBus.ExecuteAsync(emailCmd);
8992
}
9093
}
91-
}
94+
}

0 commit comments

Comments
 (0)