From fdd95a619f1dec017b708ba8bc4ddfec540367f2 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Wed, 13 Jul 2022 19:05:19 -0500 Subject: [PATCH] fix: Log files did not have debug level logs --- src/Recyclarr/Logging/LoggerFactory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Recyclarr/Logging/LoggerFactory.cs b/src/Recyclarr/Logging/LoggerFactory.cs index 298907d2..a8cf71e9 100644 --- a/src/Recyclarr/Logging/LoggerFactory.cs +++ b/src/Recyclarr/Logging/LoggerFactory.cs @@ -21,8 +21,8 @@ internal class LoggerFactory var logPath = _paths.LogDirectory.File($"trash_{DateTime.Now:yyyy-MM-dd_HH-mm-ss}.log"); return new LoggerConfiguration() - .MinimumLevel.Is(level) - .WriteTo.Console(outputTemplate: ConsoleTemplate) + .MinimumLevel.Is(LogEventLevel.Debug) + .WriteTo.Console(outputTemplate: ConsoleTemplate, restrictedToMinimumLevel: level) .WriteTo.File(logPath.FullName) .CreateLogger(); }