From d8ad2a8863c56f4139859b4e7f75c82266f5fec2 Mon Sep 17 00:00:00 2001 From: Aireil <33433913+Aireil@users.noreply.github.com> Date: Mon, 20 Feb 2023 20:13:13 +0100 Subject: [PATCH] chore: load log level from config on debug builds --- Dalamud.Injector/EntryPoint.cs | 4 ---- Dalamud/EntryPoint.cs | 2 -- 2 files changed, 6 deletions(-) diff --git a/Dalamud.Injector/EntryPoint.cs b/Dalamud.Injector/EntryPoint.cs index f05b1ac08..5ca1bfa12 100644 --- a/Dalamud.Injector/EntryPoint.cs +++ b/Dalamud.Injector/EntryPoint.cs @@ -174,10 +174,6 @@ namespace Dalamud.Injector private static void InitLogging(bool verbose, IEnumerable args) { -#if DEBUG - verbose = true; -#endif - var levelSwitch = new LoggingLevelSwitch { MinimumLevel = verbose ? LogEventLevel.Verbose : LogEventLevel.Information, diff --git a/Dalamud/EntryPoint.cs b/Dalamud/EntryPoint.cs index 11f270b63..9cd31d7ae 100644 --- a/Dalamud/EntryPoint.cs +++ b/Dalamud/EntryPoint.cs @@ -147,11 +147,9 @@ public sealed class EntryPoint var configuration = DalamudConfiguration.Load(info.ConfigurationPath!); // Set the appropriate logging level from the configuration -#if !DEBUG if (!configuration.LogSynchronously) InitLogging(info.WorkingDirectory!, info.BootShowConsole, configuration.LogSynchronously, info.LogName); LogLevelSwitch.MinimumLevel = configuration.LogLevel; -#endif // Log any unhandled exception. AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;