Removing last of log entries that do string concat or interpolation & updates to use MessageTemplate format instead

This commit is contained in:
Warren Buckley
2018-11-06 10:25:35 +00:00
parent d5294568ce
commit 1ef487b7da
14 changed files with 23 additions and 23 deletions

View File

@@ -136,7 +136,7 @@ namespace Umbraco.Web.Trees
// TODO: in the future we could return a validation statement so we can have some UI to notify the user they don't have access
if (HasPathAccess(id, queryStrings) == false)
{
Logger.Warn<ContentTreeControllerBase>("User " + Security.CurrentUser.Username + " does not have access to node with id " + id);
Logger.Warn<ContentTreeControllerBase>("User {Username} does not have access to node with id {Id}", Security.CurrentUser.Username, id);
return nodes;
}