File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Serilog.Extensions.Logging Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments