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

Fix tracing issue: Exceptions information is not saved in trace file. It is completely ignored #1827

Merged
merged 1 commit into from
May 31, 2022

Commits on May 25, 2022

  1. The formatter implementation from Microsoft.Extensions.Logging.Logger…

    …Extensions class is ignoring the exception object and the exception information is not saved into log file. see the existing implemetation from below.
    
            private static string MessageFormatter(FormattedLogValues state, Exception error)
            {
                return state.ToString();
            }
    
    Added handling for situation when the exception is not null and reused the existing code for formatting exceptions.
    Octavia Stan committed May 25, 2022
    Configuration menu
    Copy the full SHA
    fc7b352 View commit details
    Browse the repository at this point in the history