Skip to content

Commit

Permalink
Fix nullability of LogContext.PushProperty value arg (#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
nblumhardt committed Sep 13, 2022
1 parent 7740c90 commit 47df92d
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 47df92d

Please sign in to comment.