Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithunikzz committed Sep 24, 2023
1 parent c2ddbe1 commit 7a22dc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agent/kubviz/trivy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"log"
exec "os/exec"
"runtime/debug"
"strings"

"github.com/aquasecurity/trivy/pkg/k8s/report"
Expand Down Expand Up @@ -42,6 +43,7 @@ func RunTrivyK8sClusterScan(js nats.JetStreamContext) error {
if err != nil {
log.Printf("Error executing command: %v\n", err)
log.Printf("Command output: %s\n", out)
log.Printf("Stack trace: %v\n", string(debug.Stack()))

}
// Log the command output for debugging purposes
Expand Down

0 comments on commit 7a22dc2

Please sign in to comment.