Cleanup context, more logging

This commit is contained in:
Ettore Di Giacinto
2024-04-20 00:19:17 +02:00
parent 34f6d821b9
commit 22160cbf9e
4 changed files with 32 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ func (a *AgentConfig) availableActions(ctx context.Context) []Action {
for _, action := range a.Actions {
var config map[string]string
if err := json.Unmarshal([]byte(action.Config), &config); err != nil {
xlog.Info("Error unmarshalling action config", err)
xlog.Info("Error unmarshalling action config", "error", err)
continue
}