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

dp-866 One login error logging #955

Merged
merged 5 commits into from
Nov 19, 2024
Merged

Conversation

dharmverma
Copy link
Contributor

dp-866 One login error logging

if (context.Exception is InvalidOperationException invalidOpException &&
invalidOpException.Message.Contains("Correlation failed"))
{
logger.LogError("Correlation failed. State: {State}", context.ProtocolMessage?.State);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you log an error with a single entry rather than multiple log errors? e.g. by passing context information?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated the code @mareg

@dharmverma dharmverma requested a review from mareg November 19, 2024 09:42
@dharmverma dharmverma merged commit 54fd56e into main Nov 19, 2024
8 checks passed
@dharmverma dharmverma deleted the bugfix/dp-866-login-error-logging branch November 19, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants