Remove exception logging and finish LogWarning

This commit is contained in:
Nikolaj
2020-09-14 14:10:19 +02:00
parent db4652c0be
commit 161061dbbc
31 changed files with 84 additions and 261 deletions

View File

@@ -124,7 +124,7 @@ namespace Umbraco.Web.BackOffice.Controllers
}
catch (Exception ex)
{
_logger.LogError(GetType(), ex, "Error creating dictionary with {Name} under {ParentId}", key, parentId);
_logger.LogError(ex, "Error creating dictionary with {Name} under {ParentId}", key, parentId);
throw HttpResponseException.CreateNotificationValidationErrorResponse("Error creating dictionary item");
}
}
@@ -257,7 +257,7 @@ namespace Umbraco.Web.BackOffice.Controllers
}
catch (Exception ex)
{
_logger.LogError(GetType(), ex, "Error saving dictionary with {Name} under {ParentId}", dictionary.Name, dictionary.ParentId);
_logger.LogError(ex, "Error saving dictionary with {Name} under {ParentId}", dictionary.Name, dictionary.ParentId);
throw HttpResponseException.CreateNotificationValidationErrorResponse("Something went wrong saving dictionary");
}
}