mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-17 18:30:47 +02:00
Fixed: Don't log Cardigann password fields
This commit is contained in:
parent
db2b7cb22f
commit
3ef2e0b384
1 changed files with 8 additions and 2 deletions
|
|
@ -221,7 +221,10 @@ protected Dictionary<string, object> GetBaseTemplateVariables()
|
|||
var name = ".Config." + setting.Name;
|
||||
var value = _settings.ExtraFieldData.GetValueOrDefault(setting.Name, setting.Default);
|
||||
|
||||
_logger.Debug($"{name} got value {value.ToJson()}");
|
||||
if (setting.Type != "password")
|
||||
{
|
||||
_logger.Debug($"{name} got value {value.ToJson()}");
|
||||
}
|
||||
|
||||
if (setting.Type == "text" || setting.Type == "password")
|
||||
{
|
||||
|
|
@ -250,7 +253,10 @@ protected Dictionary<string, object> GetBaseTemplateVariables()
|
|||
throw new NotSupportedException();
|
||||
}
|
||||
|
||||
_logger.Debug($"Setting {setting.Name} to {(setting.Type == "password" ? "Redacted" : variables[name])}");
|
||||
if (setting.Type != "password")
|
||||
{
|
||||
_logger.Debug($"Setting {setting.Name} to {variables[name]}");
|
||||
}
|
||||
}
|
||||
|
||||
return variables;
|
||||
|
|
|
|||
Loading…
Reference in a new issue