Skip to content

Commit 4fb1cbc

Browse files
committed
Added log message when a plugin cancels event submission
1 parent 44d8dd2 commit 4fb1cbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Exceptionless/ExceptionlessClient.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,10 @@ public void SubmitEvent(Event ev, ContextData pluginContextData = null) {
185185

186186
var context = new EventPluginContext(this, ev, pluginContextData);
187187
EventPluginManager.Run(context);
188-
if (context.Cancel)
188+
if (context.Cancel) {
189+
_log.Value.FormattedInfo(typeof(ExceptionlessClient), "Event submission cancelled by a plugin: id={0} type={1}", ev.ReferenceId, ev.Type);
189190
return;
191+
}
190192

191193
// ensure all required data
192194
if (String.IsNullOrEmpty(ev.Type))

0 commit comments

Comments
 (0)