Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Jun 14, 2024
1 parent 098a265 commit c190a4f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,15 @@
[INFO][DateTime][Thread 0001][ActorSystem(test)] This is a test 1
[WARNING][DateTime][Thread 0001][ActorSystem(test)] This is a test 1
[ERROR][DateTime][Thread 0001][ActorSystem(test)] This is a test 1
[DEBUG][DateTime][Thread 0001][ActorSystem(test)] This is a test 1 cheese
Cause: System.Exception: boom!
at Akka.API.Tests.DefaultLogFormatSpec.<ShouldUseDefaultLogFormat>d__2.MoveNext()
[INFO][DateTime][Thread 0001][ActorSystem(test)] This is a test 1
Cause: System.Exception: boom!
at Akka.API.Tests.DefaultLogFormatSpec.<ShouldUseDefaultLogFormat>d__2.MoveNext() in {ProjectDirectory}LogFormatSpec.cs:line 67
[WARNING][DateTime][Thread 0001][ActorSystem(test)] This is a test 1
Cause: System.Exception: boom!
at Akka.API.Tests.DefaultLogFormatSpec.<ShouldUseDefaultLogFormat>d__2.MoveNext() in {ProjectDirectory}LogFormatSpec.cs:line 67
[ERROR][DateTime][Thread 0001][ActorSystem(test)] This is a test 1
Cause: System.Exception: boom!
at Akka.API.Tests.DefaultLogFormatSpec.<ShouldUseDefaultLogFormat>d__2.MoveNext() in {ProjectDirectory}LogFormatSpec.cs:line 67
4 changes: 2 additions & 2 deletions src/core/Akka/Event/LogFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public virtual bool ShouldTryKeepMessage(LogEvent evt, out string expandedLogMes
else
{
// allocate the message just once
var nullCheck = evt.Message.ToString();
var nullCheck = evt.ToString();

if (nullCheck == null)
return false; // no message to filter
Expand Down Expand Up @@ -225,7 +225,7 @@ private EmptyLogFilterEvaluator() : base(Array.Empty<LogFilterBase>())

public override bool ShouldTryKeepMessage(LogEvent evt, out string expandedLogMessage)
{
expandedLogMessage = evt.Message.ToString()!;
expandedLogMessage = evt.ToString()!;
return true;
}
}
Expand Down

0 comments on commit c190a4f

Please sign in to comment.