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

Prevent loggers to throw FormatException and show a friendly message instead. #4998

Merged

Conversation

Arkatufus
Copy link
Contributor

Closes #4908

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM

{
_output.WriteLine(e.ToString());
}
catch (FormatException ex)
Copy link
Member

Choose a reason for hiding this comment

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

LGTM

@Aaronontheweb
Copy link
Member

Failure in one of your new tests:

Akka.Tests.Loggers.LoggerSpec.TestOutputLogger_WithBadFormattingMustNotThrow
Expected type to be System.FormatException, but found System.AggregateException.

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) May 5, 2021 18:07
@Aaronontheweb Aaronontheweb added this to the 1.4.20 milestone May 5, 2021
@Aaronontheweb Aaronontheweb merged commit fb61262 into akkadotnet:dev May 6, 2021
This was referenced May 12, 2021
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.

None yet

2 participants