Add log level parameter to ActivityLog constructor
This commit is contained in:
parent
e3a1991fe9
commit
f97182c768
|
@ -18,7 +18,8 @@ namespace Jellyfin.Data.Entities
|
|||
/// <param name="name">The name.</param>
|
||||
/// <param name="type">The type.</param>
|
||||
/// <param name="userId">The user id.</param>
|
||||
public ActivityLog(string name, string type, Guid userId)
|
||||
/// <param name="logLevel">The log level.</param>
|
||||
public ActivityLog(string name, string type, Guid userId, LogLevel logLevel = LogLevel.Information)
|
||||
{
|
||||
if (string.IsNullOrEmpty(name))
|
||||
{
|
||||
|
@ -34,7 +35,7 @@ namespace Jellyfin.Data.Entities
|
|||
Type = type;
|
||||
UserId = userId;
|
||||
DateCreated = DateTime.UtcNow;
|
||||
LogSeverity = LogLevel.Trace;
|
||||
LogSeverity = logLevel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue
Block a user