Add log level parameter to ActivityLog constructor

This commit is contained in:
MrTimscampi 2020-12-07 13:21:50 +01:00
parent e3a1991fe9
commit f97182c768

View File

@ -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>