chore: Remove debug logging that exposed config JSON

Removed two DEBUG log statements that were logging full nodes config
JSON at Info level. This was verbose and potentially exposed sensitive
configuration data (credentials, tokens) in logs.
This commit is contained in:
rcourtman 2025-12-02 15:32:02 +00:00
parent 8f5b258424
commit 128dccf270

View file

@ -902,9 +902,6 @@ func (c *ConfigPersistence) saveNodesConfig(pveInstances []PVEInstance, pbsInsta
return err
}
// DEBUG: Log the JSON data being saved to check for TemperatureMonitoringEnabled
log.Info().Str("json", string(data)).Msg("DEBUG: Saving nodes config JSON")
if err := c.EnsureConfigDir(); err != nil {
return err
}
@ -1060,9 +1057,6 @@ func (c *ConfigPersistence) LoadNodesConfig() (*NodesConfig, error) {
}
}
// DEBUG: Log the JSON data loaded from disk
log.Info().Str("json", string(data)).Msg("DEBUG: Loaded nodes config JSON")
var config NodesConfig
if err := json.Unmarshal(data, &config); err != nil {
return nil, err