소스 검색

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