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

This commit is contained in:
Dawid Koruba
2018-06-29 12:35:31 +02:00
parent ce74108848
commit 51ab9e32de
18 changed files with 55 additions and 55 deletions

View File

@@ -74,7 +74,7 @@ namespace Umbraco.Web.Macros
try
{
controlProperty.SetValue(control, tryConvert.Result, null);
Current.Logger.Debug<UserControlMacroEngine>($"Set property \"{modelProperty.Key}\" value \"{modelProperty.Value}\".");
Current.Logger.Debug<UserControlMacroEngine>(() => $"Set property \"{modelProperty.Key}\" value \"{modelProperty.Value}\".");
}
catch (Exception e)
{