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:
@@ -115,7 +115,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error<MultiUrlPickerValueEditor>("Error getting links", ex);
|
||||
_logger.Error<MultiUrlPickerValueEditor>(ex, "Error getting links");
|
||||
}
|
||||
|
||||
return base.ToEditor(property, dataTypeService, culture, segment);
|
||||
@@ -151,7 +151,7 @@ namespace Umbraco.Web.PropertyEditors
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error<MultiUrlPickerValueEditor>("Error saving links", ex);
|
||||
_logger.Error<MultiUrlPickerValueEditor>(ex, "Error saving links");
|
||||
}
|
||||
|
||||
return base.FromEditor(editorValue, currentValue);
|
||||
|
||||
Reference in New Issue
Block a user