Skip to content

Commit 46b46ae

Browse files
committed
ref: clarify local variable name
1 parent 9984a49 commit 46b46ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Sentry.Serilog/SentrySink.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)