diff --git a/FreePackages/FreePackages.cs b/FreePackages/FreePackages.cs index e844425..a673fdd 100644 --- a/FreePackages/FreePackages.cs +++ b/FreePackages/FreePackages.cs @@ -69,7 +69,7 @@ public async Task OnBotInitModules(Bot bot, IReadOnlyDictionary(); if (filter != null) { - bot.ArchiLogger.LogGenericInfo("Free Packages Filter : " + JsonSerializer.Serialize(filter)); + bot.ArchiLogger.LogGenericInfo("Free Packages Filter : " + filter.ToJsonText()); filterConfigs.Add(filter); } break; @@ -78,7 +78,7 @@ public async Task OnBotInitModules(Bot bot, IReadOnlyDictionary? filters = configProperty.Value.ToJsonObject>(); if (filters != null) { - bot.ArchiLogger.LogGenericInfo("Free Packages Filters : " + JsonSerializer.Serialize(filters)); + bot.ArchiLogger.LogGenericInfo("Free Packages Filters : " + filters.ToJsonText()); filterConfigs.AddRange(filters); } break;