Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logs when listing files to be watched #2743

Merged
merged 1 commit into from
Aug 30, 2019

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Aug 28, 2019

Fixes #2742

Next step will be to compute those files in separate go routines and maybe print the number of files for each artifact

Signed-off-by: David Gageot [email protected]

@codecov
Copy link

codecov bot commented Aug 28, 2019

Codecov Report

Merging #2743 into master will increase coverage by <.01%.
The diff coverage is 63.63%.

Impacted Files Coverage Δ
pkg/skaffold/runner/dev.go 68.14% <63.63%> (+0.52%) ⬆️

return errors.Wrapf(err, "watching files for artifact %s", artifact.ImageName)
}

fmt.Fprintf(out, "%d\n", count)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fmt.Fprintf(out, "%d\n", count)
color.Default.Fprintf(out, "%d files being watched for artifact\n", count)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find that too verbose but yes, my version is not good either. I removed that second commit. Should be good to review

@dgageot dgageot force-pushed the fix-2742 branch 2 times, most recently from 910eea0 to 369b224 Compare August 29, 2019 19:51
@dgageot dgageot merged commit 13a5d59 into GoogleContainerTools:master Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

On a big project, skaffold dev starts with a long period with no logs
3 participants