mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 21:20:39 +02:00
Make log entry informational
This commit is contained in:
parent
b130af1b0c
commit
6e1d1eed23
|
@ -1486,7 +1486,7 @@ namespace Emby.Server.Implementations.Session
|
||||||
|
|
||||||
var sessionsCount = Sessions.Where(i => string.Equals(i.UserId, user.Id)).ToList().Count;
|
var sessionsCount = Sessions.Where(i => string.Equals(i.UserId, user.Id)).ToList().Count;
|
||||||
int maxActiveSessions = user.MaxActiveSessions;
|
int maxActiveSessions = user.MaxActiveSessions;
|
||||||
_logger.LogDebug("Current/Max sessions for user {User}: {Sessions}/{Max}", user.Username, sessionsCount, maxActiveSessions);
|
_logger.LogInformation("Current/Max sessions for user {User}: {Sessions}/{Max}", user.Username, sessionsCount, maxActiveSessions);
|
||||||
if (maxActiveSessions >= 0 && sessionsCount >= maxActiveSessions)
|
if (maxActiveSessions >= 0 && sessionsCount >= maxActiveSessions)
|
||||||
{
|
{
|
||||||
throw new SecurityException("User is at their maximum number of sessions.");
|
throw new SecurityException("User is at their maximum number of sessions.");
|
||||||
|
|
Loading…
Reference in a new issue