Skip to content

Find, verify, and analyze leaked credentials

surface git clone errors at v(0) (#5162)

Jordan Tunstill95dd07d4a67c
diff --git a/pkg/sources/git/git.go b/pkg/sources/git/git.go
index b084e9814..642c75185 100644
--- a/pkg/sources/git/git.go
+++ b/pkg/sources/git/git.go
@@ -665,7 +665,7 @@ func executeClone(ctx context.Context, params cloneParams) (*git.Repository, err
} else if cloneCmd.ProcessState == nil {
return nil, fmt.Errorf("clone command exited with no output")
} else if cloneCmd.ProcessState.ExitCode() != 0 {
- logger.V(1).Info("git clone failed", "error", err)
+ logger.V(0).Info("git clone failed", "error", err)
failureReason := ClassifyCloneError(output)
exitCode := cloneCmd.ProcessState.ExitCode()
metricsInstance.RecordCloneOperation(statusFailure, failureReason, exitCode)