Skip to content

Conversation

@Numpsy
Copy link
Member

@Numpsy Numpsy commented Jun 11, 2024

Update to Serilog 4, update explicit TFMs to match, internalize the enricher classes as described for the Environment enricher in serilog/serilog-enrichers-environment#63


var last = _lastValue;
if (last == null || (int)((ScalarValue)last.Value).Value != threadId)
if (last is null || (int)((ScalarValue)last.Value).Value! != threadId)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the ! for these on the assumption that the ScalarValue is always created here, and doesn't have a null value

@Numpsy Numpsy marked this pull request as ready for review June 13, 2024 12:45
@nblumhardt nblumhardt merged commit 602315b into serilog:dev Jun 14, 2024
@nblumhardt
Copy link
Member

LGTM 👍

@nblumhardt nblumhardt mentioned this pull request Jun 14, 2024
@Numpsy Numpsy deleted the updates branch June 14, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants