From d6bb1b176b77ff93dc9ca8302857a03329fe753e Mon Sep 17 00:00:00 2001 From: Sebastian M Date: Mon, 12 Feb 2024 00:29:39 +0100 Subject: [PATCH] Remove FSUIPC & AutoConnect message from log (#1672) * Remove FSUIPC & AutoConnect message from log * Added a comment --- FSUIPC/Fsuipc2Cache.cs | 4 +++- MobiFlight/ExecutionManager.cs | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FSUIPC/Fsuipc2Cache.cs b/FSUIPC/Fsuipc2Cache.cs index 4a7921842..d9fa91cab 100644 --- a/FSUIPC/Fsuipc2Cache.cs +++ b/FSUIPC/Fsuipc2Cache.cs @@ -92,7 +92,9 @@ public bool Connect() } else if (ex.FSUIPCErrorCode == FSUIPCError.FSUIPC_ERR_NOFS) { - Log.Instance.log("No FSUIPC found.", LogSeverity.Debug); + // We can enable this again once we have throttling for the log in place + // But it doesn't make sense to log this every 10s + // Log.Instance.log("No FSUIPC found.", LogSeverity.Debug); } else { diff --git a/MobiFlight/ExecutionManager.cs b/MobiFlight/ExecutionManager.cs index c9c508c87..b2452e765 100644 --- a/MobiFlight/ExecutionManager.cs +++ b/MobiFlight/ExecutionManager.cs @@ -1085,11 +1085,9 @@ void AutoConnectTimer_TickAsync(object sender, EventArgs e) _autoConnectTimerRunning = true; #if ARCAZE - if (!arcazeCache.Available()) + if (arcazeCache.Enabled && !arcazeCache.Available()) { - Log.Instance.log("AutoConnect modules.", LogSeverity.Debug); - if (Properties.Settings.Default.ArcazeSupportEnabled) - arcazeCache.connect(); // _initializeArcaze(); + arcazeCache.connect(); } #endif