chore: load log level from config on debug builds

This commit is contained in:
Aireil 2023-02-20 20:13:13 +01:00 committed by GitHub
parent e3977f9493
commit d8ad2a8863
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View file

@ -174,10 +174,6 @@ namespace Dalamud.Injector
private static void InitLogging(bool verbose, IEnumerable<string> args)
{
#if DEBUG
verbose = true;
#endif
var levelSwitch = new LoggingLevelSwitch
{
MinimumLevel = verbose ? LogEventLevel.Verbose : LogEventLevel.Information,

View file

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