From 0159849335dcaf28317af104f20cc885a2307d82 Mon Sep 17 00:00:00 2001 From: sven-n Date: Tue, 21 Jul 2026 22:04:39 +0200 Subject: [PATCH] Merge pull request #838 from nolt/fix-bot-log-spam Log the disabled auto-repair once per session (cherry picked from commit 4636dfaf0832b1c06eee9a2bc4b3b624eb5985e9) --- src/GameLogic/Offline/RepairHandler.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/GameLogic/Offline/RepairHandler.cs b/src/GameLogic/Offline/RepairHandler.cs index 9ac8da0..a98ff9b 100644 --- a/src/GameLogic/Offline/RepairHandler.cs +++ b/src/GameLogic/Offline/RepairHandler.cs @@ -22,6 +22,8 @@ internal sealed class RepairHandler private readonly IMuHelperSettings? _config; private readonly ItemRepairAction _repairAction = new(); + private bool _loggedDisabled; + /// /// Initializes a new instance of the class. /// @@ -41,7 +43,13 @@ internal sealed class RepairHandler { if (this._config is not { RepairItem: true }) { - this._player.Logger.LogDebug("Auto-repair is disabled by MU Helper configuration for character {CharacterName}.", this._player.Name); + // Once per session: this states a configuration, not an event, and the tick runs twice a second. + if (!this._loggedDisabled) + { + this._loggedDisabled = true; + this._player.Logger.LogDebug("Auto-repair is disabled by MU Helper configuration for character {CharacterName}.", this._player.Name); + } + return; }