Change calls to logger.Info method to use Func<string> parameter

This commit is contained in:
Dawid Koruba
2018-06-29 14:25:17 +02:00
parent 51ab9e32de
commit 7660e10098
16 changed files with 61 additions and 76 deletions

View File

@@ -226,7 +226,7 @@ namespace Umbraco.Core.IO
}
catch (FileNotFoundException ex)
{
Current.Logger.Info<PhysicalFileSystem>(string.Format("DeleteFile failed with FileNotFoundException: {0}", ex.InnerException));
Current.Logger.Info<PhysicalFileSystem>(() => $"DeleteFile failed with FileNotFoundException: {ex.InnerException}");
}
}