mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
switching logging to serilog convention according to pr comments
This commit is contained in:
parent
ba003e06ef
commit
53beebc774
@ -230,7 +230,7 @@ namespace MediaBrowser.Api.UserLibrary
|
|||||||
|
|
||||||
if (!user.Policy.EnableAllFolders && !user.Policy.EnabledFolders.Any(i => new Guid(i) == item.Id))
|
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>
|
return new QueryResult<BaseItem>
|
||||||
{
|
{
|
||||||
Items = Array.Empty<BaseItem>(),
|
Items = Array.Empty<BaseItem>(),
|
||||||
|
Loading…
Reference in New Issue
Block a user