Skip to content

Commit 5538bda

Browse files
committed
Fixes #50 Preserve extended data on 404's
1 parent 29d1431 commit 5538bda

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

Source/Platforms/Nancy/ExceptionlessNancyPlugin.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ public void Run(EventPluginContext context) {
2828
if (requestInfo == null)
2929
return;
3030

31-
if (context.Event.Type == Event.KnownTypes.NotFound) {
31+
if (context.Event.Type == Event.KnownTypes.NotFound)
3232
context.Event.Source = requestInfo.GetFullPath(includeHttpMethod: true, includeHost: false, includeQueryString: false);
33-
context.Event.Data.Clear();
34-
}
3533

3634
context.Event.AddRequestInfo(requestInfo);
3735
}

Source/Platforms/Web/ExceptionlessWebPlugin.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public void Run(EventPluginContext context) {
4747
if (httpCode == 404) {
4848
context.Event.Type = Event.KnownTypes.NotFound;
4949
context.Event.Source = requestInfo.GetFullPath(includeHttpMethod: true, includeHost: false, includeQueryString: false);
50-
context.Event.Data.Clear();
5150
}
5251
}
5352

Source/Platforms/WebApi/ExceptionlessWebApiPlugin.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public void Run(EventPluginContext context) {
4141
if (error != null && error.Code == "404") {
4242
context.Event.Type = Event.KnownTypes.NotFound;
4343
context.Event.Source = requestInfo.GetFullPath(includeHttpMethod: true, includeHost: false, includeQueryString: false);
44-
context.Event.Data.Clear();
4544
}
4645

4746
context.Event.AddRequestInfo(requestInfo);

0 commit comments

Comments
 (0)