Remove LogError<T> from LoggerExtensions

This commit is contained in:
Nikolaj
2020-09-16 09:40:49 +02:00
parent e870823e81
commit dda6fb12a3
66 changed files with 115 additions and 195 deletions

View File

@@ -87,11 +87,11 @@ namespace Umbraco.Core.IO
}
catch (UnauthorizedAccessException ex)
{
_logger.LogError<PhysicalFileSystem>(ex, "Not authorized to get directories for '{Path}'", fullPath);
_logger.LogError(ex, "Not authorized to get directories for '{Path}'", fullPath);
}
catch (DirectoryNotFoundException ex)
{
_logger.LogError<PhysicalFileSystem>(ex, "Directory not found for '{Path}'", fullPath);
_logger.LogError(ex, "Directory not found for '{Path}'", fullPath);
}
return Enumerable.Empty<string>();
@@ -123,7 +123,7 @@ namespace Umbraco.Core.IO
}
catch (DirectoryNotFoundException ex)
{
_logger.LogError<PhysicalFileSystem>(ex, "Directory not found for '{Path}'", fullPath);
_logger.LogError(ex, "Directory not found for '{Path}'", fullPath);
}
}
@@ -203,11 +203,11 @@ namespace Umbraco.Core.IO
}
catch (UnauthorizedAccessException ex)
{
_logger.LogError<PhysicalFileSystem>(ex, "Not authorized to get directories for '{Path}'", fullPath);
_logger.LogError(ex, "Not authorized to get directories for '{Path}'", fullPath);
}
catch (DirectoryNotFoundException ex)
{
_logger.LogError<PhysicalFileSystem>(ex, "Directory not found for '{FullPath}'", fullPath);
_logger.LogError(ex, "Directory not found for '{FullPath}'", fullPath);
}
return Enumerable.Empty<string>();
@@ -240,7 +240,7 @@ namespace Umbraco.Core.IO
}
catch (FileNotFoundException ex)
{
_logger.LogError<PhysicalFileSystem>(ex.InnerException, "DeleteFile failed with FileNotFoundException for '{Path}'", fullPath);
_logger.LogError(ex.InnerException, "DeleteFile failed with FileNotFoundException for '{Path}'", fullPath);
}
}