Skip to content

Commit

Permalink
Fix nullability of LogContext.PushProperty value arg (serilog#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt authored and Twinki14 committed Dec 30, 2023
1 parent b706cc8 commit 36af212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serilog/Context/LogContext.cs
Expand Up @@ -59,7 +59,7 @@ public static class LogContext
/// then the value will be converted to a structure; otherwise, unknown types will
/// be converted to scalars, which are generally stored as strings.</param>
/// <returns>A token that must be disposed, in order, to pop properties back off the stack.</returns>
public static IDisposable PushProperty(string name, object value, bool destructureObjects = false)
public static IDisposable PushProperty(string name, object? value, bool destructureObjects = false)
{
return Push(new PropertyEnricher(name, value, destructureObjects));
}
Expand Down

0 comments on commit 36af212

Please sign in to comment.