mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-21 22:05:38 -04:00
Also add as data to exception so sentry gets it.
This commit is contained in:
@@ -34,6 +34,18 @@ namespace NzbDrone.Common.Extensions
|
||||
|
||||
var contentSample = response.Content.Substring(0, Math.Min(response.Content.Length, 512));
|
||||
|
||||
if (response.Request != null)
|
||||
{
|
||||
ex.AddData("RequestUri", response.Request.Url.ToString());
|
||||
|
||||
if (response.Request.ContentSummary != null)
|
||||
{
|
||||
ex.AddData("RequestSummary", response.Request.ContentSummary);
|
||||
}
|
||||
}
|
||||
|
||||
ex.AddData("StatusCode", response.StatusCode.ToString());
|
||||
|
||||
if (response.Headers != null)
|
||||
{
|
||||
ex.AddData("ContentType", response.Headers.ContentType ?? string.Empty);
|
||||
|
||||
Reference in New Issue
Block a user