Skip to content

Commit b201aba

Browse files
committed
pass null instead of text "null"
1 parent 6982c96 commit b201aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
8080
}
8181
else if (property.Key.StartsWith("$"))
8282
{
83-
if (logger.BindProperty(property.Key.Substring(1), property.Value?.ToString() ?? "null", true, out var stringified))
83+
if (logger.BindProperty(property.Key.Substring(1), property.Value?.ToString(), true, out var stringified))
8484
properties.Add(stringified);
8585
}
8686
else

0 commit comments

Comments
 (0)