Skip to content

Commit a9e5ccb

Browse files
committed
Fix formater code
1 parent 5287ad8 commit a9e5ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Akka.Hosting/Logging/LoggerFactoryLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected virtual void Log(LogEvent log, ActorPath path)
9191
// Use LogMessage.ToString() which applies the correct formatter (SemanticLogMessageFormatter)
9292
// instead of string.Format() which only works with positional {0} placeholders
9393
_akkaLogger.Log(logLevel, new EventId(), state, log.Cause,
94-
(s, ex) => log.Message is LogMessage logMsg ? logMsg.ToString() ?? string.Empty : log.Message?.ToString() ?? string.Empty);
94+
(s, ex) => log.Message?.ToString() ?? string.Empty);
9595
}
9696

9797
private static LogLevel GetLogLevel(Event.LogLevel level)

0 commit comments

Comments
 (0)