Skip to content

ADOExceptionReporter logs errors without a stack trace #3584

Open
@justaszal

Description

@justaszal

Hello,

The ADOExceptionReporter does not include the stack trace for error logs, only warnings. The problem is that our application is configured to not log warnings for NHibernate, and we cannot see the stack trace of the error logs in our observability system.

while (ex != null)
{
log.Warn(ex, ex.Message);
log.Error(ex.Message);
ex = ex.InnerException;
}

We propose to log errors like this: log.Error(ex, ex.Message).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions