Skip to content

Commit

Permalink
state should be casted to an object
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Jun 9, 2018
1 parent 4c4e6ec commit a463c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Conventions/DiagnosticLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
_diagnosticSource.Write(GetName(logLevel), new
{
eventId,
state,
state = (object)state,
exception,
message = formatter(state, exception)
});
Expand Down

0 comments on commit a463c6f

Please sign in to comment.