Fixed: (Cardigann) Do not log config RSSKey or APIKey

Fixed: (Cardigann) (v3) Pass APIKey as headers
This commit is contained in:
bakerboy448
2021-11-16 13:36:10 -06:00
committed by Qstick
parent 1aa9149866
commit 89a1b0f534
2 changed files with 6 additions and 8 deletions

View File

@@ -292,7 +292,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
var name = ".Config." + setting.Name;
var value = Settings.ExtraFieldData.GetValueOrDefault(setting.Name, setting.Default);
if (setting.Type != "password" && indexerLogging)
if ((setting.Type != "password" && setting.Name != "apikey" && setting.Name != "rsskey") && indexerLogging)
{
_logger.Trace($"{name} got value {value.ToJson()}");
}
@@ -334,7 +334,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
throw new NotSupportedException();
}
if (setting.Type != "password" && indexerLogging)
if (setting.Type != "password" && setting.Name != "apikey" && setting.Name != "rsskey" && indexerLogging)
{
_logger.Debug($"Setting {setting.Name} to {variables[name]}");
}