Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harden LogFormatSpec #7429

Merged

Conversation

Aaronontheweb
Copy link
Member

Changes

close #7421

private static string SanitizeTestEventListener(string logs)
{
var pattern = @"^.*Akka\.TestKit\.TestEventListener.*$";
var result = Regex.Replace(logs, pattern, string.Empty, RegexOptions.Multiline);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strip the offending [DEBUG][DateTime][Thread 0001][EventStream(test)] Logger log1-TestEventListener [Akka.TestKit.TestEventListener] line if the TestEventListener is detected.

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) December 20, 2024 19:56
@Aaronontheweb Aaronontheweb merged commit 61bdebf into akkadotnet:dev Dec 20, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Akka.API.Tests.DefaultLogFormatSpec.ShouldUseDefaultLogFormat: racy failures
1 participant