File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ private void InnerEmit(LogEvent logEvent)
105105 var exception = logEvent . Exception ;
106106 var template = logEvent . MessageTemplate . Text ;
107107 var formatted = FormatLogEvent ( logEvent ) ;
108- var addedBreadcrumb = false ;
108+ var addedBreadcrumbForException = false ;
109109
110110 if ( logEvent . Level >= _options . MinimumEventLevel )
111111 {
@@ -138,11 +138,11 @@ private void InnerEmit(LogEvent logEvent)
138138 // Capturing exception events adds a breadcrumb automatically... we don't want to add another one
139139 if ( exception != null )
140140 {
141- addedBreadcrumb = true ;
141+ addedBreadcrumbForException = true ;
142142 }
143143 }
144144
145- if ( ! addedBreadcrumb && logEvent . Level >= _options . MinimumBreadcrumbLevel )
145+ if ( ! addedBreadcrumbForException && logEvent . Level >= _options . MinimumBreadcrumbLevel )
146146 {
147147 Dictionary < string , string > ? data = null ;
148148 if ( exception != null && ! string . IsNullOrWhiteSpace ( formatted ) )
You can’t perform that action at this time.
0 commit comments