Skip to content

Commit

Permalink
debug and info messages only for sync
Browse files Browse the repository at this point in the history
  • Loading branch information
r2d4 committed Oct 5, 2018
1 parent be4cc6c commit 9b11bc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/skaffold/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/build/kaniko"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/build/local"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/build/tag"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/color"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/config"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/deploy"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/docker"
Expand Down Expand Up @@ -276,7 +275,8 @@ func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*la
logrus.Warnln("Skipping build and deploy due to sync error:", err)
return nil
}
color.Default.Fprintf(out, "Synced files for %s...\nCopied: %s\nDeleted: %s\n", s.Image, s.Copy, s.Delete)
logrus.Infof("Synced %d files for %s", len(s.Copy)+len(s.Delete), s.Image)
logrus.Debugf("Synced files for %s...\nCopied: %s\nDeleted: %s\n", s.Image, s.Copy, s.Delete)
}
case len(changed.needsRebuild) > 0:
bRes, err := r.Build(ctx, out, r.Tagger, changed.needsRebuild)
Expand Down

0 comments on commit 9b11bc4

Please sign in to comment.