Преглед на файлове

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