Skip to content

Commit 60bcdd9

Browse files
authored
Merge pull request #151 from serilog/dev
3.0.1 Release
2 parents 71235c0 + 9406664 commit 60bcdd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Serilog.Extensions.Logging/Extensions/Logging/SerilogLogger.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ internal static LogEventProperty CreateEventIdProperty(EventId eventId)
139139

140140
if (eventId.Id != 0)
141141
{
142-
if (eventId.Id < LowEventIdValues.Length)
142+
if (eventId.Id >= 0 && eventId.Id < LowEventIdValues.Length)
143143
// Avoid some allocations
144144
properties.Add(LowEventIdValues[eventId.Id]);
145145
else

src/Serilog.Extensions.Logging/Serilog.Extensions.Logging.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Description>Low-level Serilog provider for Microsoft.Extensions.Logging</Description>
5-
<VersionPrefix>3.0.0</VersionPrefix>
5+
<VersionPrefix>3.0.1</VersionPrefix>
66
<Authors>Microsoft;Serilog Contributors</Authors>
77
<TargetFrameworks>netstandard2.0</TargetFrameworks>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

0 commit comments

Comments
 (0)