Skip to content

Commit

Permalink
Disable zap logger
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Nov 20, 2023
1 parent 12967d2 commit 1a9e4fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/handler/trivyProcessing.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/Khan/genqlient/graphql"
"github.com/aquasecurity/trivy/pkg/commands/artifact"
"github.com/aquasecurity/trivy/pkg/flag"
aqualog "github.com/aquasecurity/trivy/pkg/log"
"github.com/aquasecurity/trivy/pkg/types"
"github.com/uselagoon/lagoon/services/insights-handler/internal/lagoonclient"
"io"
Expand Down Expand Up @@ -151,10 +152,11 @@ func executeProcessingTrivy(trivyRemoteAddress string, bomWriteDir string, bom c
os.Remove(fullFilename)
file.Close()
}()

ctx, cancel := context.WithTimeout(context.Background(), time.Second*1000)
defer cancel()

aqualog.InitLogger(false, true)

opts := flag.Options{
GlobalOptions: flag.GlobalOptions{
ConfigFile: "trivy.yaml",
Expand Down

0 comments on commit 1a9e4fa

Please sign in to comment.