浏览代码

switching logging to serilog convention according to pr comments

Felix Ruhnow 6 年之前
父节点
当前提交
53beebc774
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Api/UserLibrary/ItemsService.cs

+ 1 - 1
MediaBrowser.Api/UserLibrary/ItemsService.cs

@@ -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>(),