switching logging to serilog convention according to pr comments

This commit is contained in:
Felix Ruhnow 2019-02-19 12:17:28 +01:00
parent ba003e06ef
commit 53beebc774

View File

@ -230,7 +230,7 @@ namespace MediaBrowser.Api.UserLibrary
if (!user.Policy.EnableAllFolders && !user.Policy.EnabledFolders.Any(i => new Guid(i) == item.Id))
{
Logger.LogWarning($"{user.Name} is not permitted to access Library {item.Name}.");
Logger.LogWarning("{UserName} is not permitted to access Library {ItemName}.", user.Name, item.Name);
return new QueryResult<BaseItem>
{
Items = Array.Empty<BaseItem>(),