Skip to content

Commit

Permalink
Prevent redundant FFlag configuration logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Aug 26, 2023
1 parent 1fda39b commit f5da33e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Bloxstrap/FastFlagManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,16 @@ public void SetValue(string key, object? value)
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()!;
}
Expand Down

0 comments on commit f5da33e

Please sign in to comment.