-
Notifications
You must be signed in to change notification settings - Fork 935
Open
Description
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.
nhibernate-core/src/NHibernate/Util/ADOExceptionReporter.cs
Lines 29 to 34 in ebdbb6e
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)
.
doerig, justaszal and Madajevas
Metadata
Metadata
Assignees
Labels
No labels