Skip to content

Commit 3284b41

Browse files
authored
fix: remove upload debug log line (#623)
These two log lines print out an excessive amount of times per deploy/build and I don't think they produce very meaningful/useful information. I propose we remove it and stick to just logging on upload errors.
1 parent 0c7b5a9 commit 3284b41

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

go/porcelain/deploy.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -498,13 +498,6 @@ func (n *Netlify) uploadFile(ctx context.Context, d *models.Deploy, f *FileBundl
498498

499499
authInfo := context.GetAuthInfo(ctx)
500500

501-
context.GetLogger(ctx).WithFields(logrus.Fields{
502-
"deploy_id": d.ID,
503-
"file_path": f.Name,
504-
"file_sum": f.Sum,
505-
"file_size": f.Size,
506-
}).Debug("Uploading file")
507-
508501
b := backoff.NewExponentialBackOff()
509502
b.MaxElapsedTime = 2 * time.Minute
510503

@@ -530,8 +523,6 @@ func (n *Netlify) uploadFile(ctx context.Context, d *models.Deploy, f *FileBundl
530523

531524
var operationError error
532525

533-
context.GetLogger(ctx).Infof("Uploading file %v", f.Name)
534-
535526
switch t {
536527
case fileUpload:
537528
var body io.ReadCloser

0 commit comments

Comments
 (0)