Fix some exceptions being logged the wrong way (#9693)
In these statements, the exception was passed as a log message parameter instead of as the exception. This meant the exception and including stack trace was not logged and thus lost.
This commit is contained in:
@@ -308,7 +308,7 @@ namespace Umbraco.ModelsBuilder.Embedded
|
||||
{
|
||||
try
|
||||
{
|
||||
_logger.Error<PureLiveModelFactory>("Failed to build models.", e);
|
||||
_logger.Error<PureLiveModelFactory>(e, "Failed to build models.");
|
||||
_logger.Warn<PureLiveModelFactory>("Running without models."); // be explicit
|
||||
_errors.Report("Failed to build PureLive models.", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user