better exception logging for examine

This commit is contained in:
Shannon
2015-03-30 17:23:28 +11:00
parent 0742108ec1
commit 7a31d6cae3

View File

@@ -237,7 +237,7 @@ namespace UmbracoExamine
protected override void OnIndexingError(IndexingErrorEventArgs e)
{
DataService.LogService.AddErrorLog(e.NodeId, string.Format("{0},{1}, IndexSet: {2}", e.Message, e.InnerException != null ? e.InnerException.Message : "", this.IndexSetName));
DataService.LogService.AddErrorLog(e.NodeId, string.Format("{0},{1}, IndexSet: {2}", e.Message, e.InnerException != null ? e.InnerException.ToString() : "", this.IndexSetName));
base.OnIndexingError(e);
}