Disable trace logging by default

This commit is contained in:
Loporrit
2025-08-23 08:27:08 +00:00
parent 2168fa91ce
commit 1768d68df2
4 changed files with 36 additions and 2 deletions

View File

@@ -115,6 +115,7 @@ public class MarePlugin : MediatorSubscriberBase, IHostedService
private void DalamudUtilOnLogIn()
{
LoporritSync.Plugin.Self.ToggleFileLogging(_mareConfigService.Current.LogTraceLog, "Login");
Logger?.LogDebug("Client login");
if (_launchTask == null || _launchTask.IsCompleted) _launchTask = Task.Run(WaitForPlayerAndLaunchCharacterManager);
}
@@ -124,6 +125,7 @@ public class MarePlugin : MediatorSubscriberBase, IHostedService
Logger?.LogDebug("Client logout");
_runtimeServiceScope?.Dispose();
LoporritSync.Plugin.Self.ToggleFileLogging(true, "Logout");
}
private async Task WaitForPlayerAndLaunchCharacterManager()