Skip to content

Commit 8101e44

Browse files
authored
Merge pull request #1261 from merico-dev/log-ht
Feat: Add More Logs in The Top Level of Plugins
2 parents d172e4c + 627590c commit 8101e44

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/pkg/plugin/argocdapp/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/devstream-io/devstream/pkg/util/log"
1010
)
1111

12-
// Create creates an ArgoCD app YAML and applys it.
12+
// Create creates an ArgoCD app YAML and applies it.
1313
func Create(options configmanager.RawOptions) (statemanager.ResourceStatus, error) {
1414
// Initialize Operator with Operations
1515
operator := &installer.Operator{

internal/pkg/pluginengine/change.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ func execute(smgr statemanager.Manager, changes []*Change, reverse bool) map[str
9696
succeeded, err = Delete(c.Tool)
9797
}
9898
if err != nil {
99-
key := fmt.Sprintf("%s/%s-%s", c.Tool.Name, c.Tool.InstanceID, c.ActionName)
99+
key := fmt.Sprintf("%s/%s/%s", c.Tool.Name, c.Tool.InstanceID, c.ActionName)
100+
log.Errorf("%s/%s %s failed with error: %s", c.Tool.Name, c.Tool.InstanceID, c.ActionName, err)
100101
errorsMap[key] = err
101102
}
102103

0 commit comments

Comments
 (0)