Skip to content

Commit

Permalink
Respect the IsRawDataIgnored setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Pakes committed May 7, 2018
1 parent 077371a commit 59d0f75
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Mindscape.Raygun4Net.WebApi/RaygunWebApiClient.cs
Original file line number Diff line number Diff line change
@@ -132,9 +132,12 @@ private static void AttachInternal(HttpConfiguration config, Func<HttpRequestMes
{
applicationVersion = applicationVersionFromAttach;
}

config.MessageHandlers.Add(new RaygunWebApiDelegatingHandler());


if (RaygunSettings.Settings.IsRawDataIgnored == false)
{
config.MessageHandlers.Add(new RaygunWebApiDelegatingHandler());
}

var clientCreator = new RaygunWebApiClientProvider(generateRaygunClientWithMessage, applicationVersion);

config.Services.Add(typeof(IExceptionLogger), new RaygunWebApiExceptionLogger(clientCreator));

0 comments on commit 59d0f75

Please sign in to comment.