Change calls to logger.Debug method to use Func<string> parameter
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user