Skip to content

Commit 10395c5

Browse files
committed
Avoid passing through the {OriginalFormat} property
1 parent 50d452a commit 10395c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Serilog.Framework.Logging/SerilogLogger.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ public void Log(LogLevel logLevel, int eventId, object state, Exception exceptio
7575
{
7676
messageTemplate = (string)property.Value;
7777
}
78-
79-
logger = logger.ForContext(property.Key, property.Value);
78+
else
79+
{
80+
logger = logger.ForContext(property.Key, property.Value);
81+
}
8082
}
8183

8284
var stateType = state.GetType();

0 commit comments

Comments
 (0)