From f5da33e92938c53eee6ccba93db5fb99db4ac1e7 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Sat, 26 Aug 2023 15:44:42 +0100 Subject: [PATCH] Prevent redundant FFlag configuration logs --- Bloxstrap/FastFlagManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Bloxstrap/FastFlagManager.cs b/Bloxstrap/FastFlagManager.cs index 6f435b7..b3b94ea 100644 --- a/Bloxstrap/FastFlagManager.cs +++ b/Bloxstrap/FastFlagManager.cs @@ -140,9 +140,16 @@ namespace Bloxstrap else { if (Prop.ContainsKey(key)) + { + if (key == Prop[key].ToString()) + return; + App.Logger.WriteLine(LOG_IDENT, $"Changing of '{key}' from '{Prop[key]}' to '{value}' is pending"); + } else + { App.Logger.WriteLine(LOG_IDENT, $"Setting of '{key}' to '{value}' is pending"); + } Prop[key] = value.ToString()!; }