mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Fix a logging statement
This commit is contained in:
parent
040871459b
commit
6cc1bd544a
1 changed files with 3 additions and 2 deletions
|
@ -12,8 +12,9 @@ using MediaBrowser.Model.Services;
|
|||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Http.Extensions;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Net.Http.Headers;
|
||||
|
||||
namespace Emby.Server.Implementations.SocketSharp
|
||||
namespace Emby.Server.Implementations.SocketSharp
|
||||
{
|
||||
public class WebSocketSharpListener : IHttpListener
|
||||
{
|
||||
|
@ -39,7 +40,7 @@ using Microsoft.Extensions.Logging;
|
|||
{
|
||||
var url = request.GetDisplayUrl();
|
||||
|
||||
logger.LogInformation("{0} {1}. UserAgent: {2}", "WS", url, request.Headers["User-Agent"].ToString());
|
||||
logger.LogInformation("WS {Url}. UserAgent: {UserAgent}", url, request.Headers[HeaderNames.UserAgent].ToString());
|
||||
}
|
||||
|
||||
public async Task ProcessWebSocketRequest(HttpContext ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue