From f97182c768d836afe376583921fdc1a4cb159786 Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Mon, 7 Dec 2020 13:21:50 +0100 Subject: [PATCH] Add log level parameter to ActivityLog constructor --- Jellyfin.Data/Entities/ActivityLog.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jellyfin.Data/Entities/ActivityLog.cs b/Jellyfin.Data/Entities/ActivityLog.cs index 620e828306..e2d5c71879 100644 --- a/Jellyfin.Data/Entities/ActivityLog.cs +++ b/Jellyfin.Data/Entities/ActivityLog.cs @@ -18,7 +18,8 @@ namespace Jellyfin.Data.Entities /// The name. /// The type. /// The user id. - public ActivityLog(string name, string type, Guid userId) + /// The log level. + 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; } ///