Skip to content

Commit

Permalink
Fixing null in log entry when CorrelationIdHeaderEnricher
Browse files Browse the repository at this point in the history
  • Loading branch information
lkurzyniec committed Nov 12, 2019
1 parent 77782a4 commit d7b4752
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)

var correlationIdProperty = new LogEventProperty(CorrelationIdPropertyName, new ScalarValue(correlationId));

logEvent.AddPropertyIfAbsent(correlationIdProperty);
logEvent.AddOrUpdateProperty(correlationIdProperty);
}

private string GetCorrelationId()
Expand Down

0 comments on commit d7b4752

Please sign in to comment.