mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
update logging levels
This commit is contained in:
@@ -143,7 +143,7 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||
|
||||
private async Task CleanChannel(Guid id, CancellationToken cancellationToken)
|
||||
{
|
||||
_logger.Debug("Cleaning channel {0} from database", id);
|
||||
_logger.Info("Cleaning channel {0} from database", id);
|
||||
|
||||
// Delete all channel items
|
||||
var allIds = _libraryManager.GetItemIds(new InternalItemsQuery
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
|
||||
var msg = "HTTP Response " + statusCode + " to " + endPoint + responseTime;
|
||||
|
||||
logger.LogMultiline(msg, LogSeverity.Debug, log);
|
||||
logger.LogMultiline(msg, LogSeverity.Info, log);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(token))
|
||||
{
|
||||
throw new SecurityException("Access token is invalid or expired.");
|
||||
throw new SecurityException("Access token is required.");
|
||||
}
|
||||
|
||||
var info = GetTokenInfo(request);
|
||||
|
||||
@@ -62,8 +62,12 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
|
||||
auth.TryGetValue("Version", out version);
|
||||
}
|
||||
|
||||
var token = httpReq.Headers["X-MediaBrowser-Token"];
|
||||
var token = httpReq.Headers["X-Emby-Token"];
|
||||
|
||||
if (string.IsNullOrWhiteSpace(token))
|
||||
{
|
||||
token = httpReq.Headers["X-MediaBrowser-Token"];
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(token))
|
||||
{
|
||||
token = httpReq.QueryString["api_key"];
|
||||
|
||||
@@ -191,7 +191,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
|
||||
var type = request.IsWebSocketRequest ? "Web Socket" : "HTTP " + request.HttpMethod;
|
||||
|
||||
logger.LogMultiline(type + " " + request.Url, LogSeverity.Debug, log);
|
||||
logger.LogMultiline(type + " " + request.Url, LogSeverity.Info, log);
|
||||
}
|
||||
|
||||
private void HandleError(Exception ex, HttpListenerContext context)
|
||||
|
||||
@@ -1324,7 +1324,7 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
if (existing.Items.Length > 0)
|
||||
{
|
||||
var token = existing.Items[0].AccessToken;
|
||||
_logger.Debug("Reissuing access token: " + token);
|
||||
_logger.Info("Reissuing access token: " + token);
|
||||
return token;
|
||||
}
|
||||
|
||||
@@ -1340,7 +1340,7 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
AccessToken = Guid.NewGuid().ToString("N")
|
||||
};
|
||||
|
||||
_logger.Debug("Creating new access token for user {0}", userId);
|
||||
_logger.Info("Creating new access token for user {0}", userId);
|
||||
await _authRepo.Create(newToken, CancellationToken.None).ConfigureAwait(false);
|
||||
|
||||
return newToken.AccessToken;
|
||||
@@ -1353,6 +1353,8 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
throw new ArgumentNullException("accessToken");
|
||||
}
|
||||
|
||||
_logger.Info("Logging out access token {0}", accessToken);
|
||||
|
||||
var existing = _authRepo.Get(new AuthenticationInfoQuery
|
||||
{
|
||||
Limit = 1,
|
||||
|
||||
Reference in New Issue
Block a user