Remove Debug<T> from LoggerExtensions

This commit is contained in:
Nikolaj
2020-09-16 10:24:05 +02:00
parent 488093add3
commit a18580c7f6
30 changed files with 90 additions and 109 deletions

View File

@@ -245,7 +245,7 @@ namespace Umbraco.Web.BackOffice.Controllers
{
var indexer = (IIndex)sender;
_logger.Debug<ExamineManagementController>("Logging operation completed for index {IndexName}", indexer.Name);
_logger.LogDebug("Logging operation completed for index {IndexName}", indexer.Name);
//ensure it's not listening anymore
indexer.IndexOperationComplete -= Indexer_IndexOperationComplete;

View File

@@ -113,7 +113,7 @@ namespace Umbraco.Web.BackOffice.Controllers
if (userIsAdmin == false)
{
var errorMessage = "User is not a member of the administrators group and so is not allowed to toggle the URL tracker";
_logger.Debug<RedirectUrlManagementController>(errorMessage);
_logger.LogDebug(errorMessage);
throw new SecurityException(errorMessage);
}