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

Minor logging improvements #1142

Merged
merged 2 commits into from
Oct 11, 2018
Merged

Conversation

nkubala
Copy link
Contributor

@nkubala nkubala commented Oct 11, 2018

Log (INFO) which files were added/modified/deleted when a rebuild is triggered. Change the dockerfile dependencies log level to DEBUG (since it happens every second), and add debug logs for other artifact types.

@codecov-io
Copy link

codecov-io commented Oct 11, 2018

Codecov Report

Merging #1142 into master will decrease coverage by 0.1%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1142      +/-   ##
=========================================
- Coverage   42.31%   42.2%   -0.11%     
=========================================
  Files          89      89              
  Lines        3982    3992      +10     
=========================================
  Hits         1685    1685              
- Misses       2129    2139      +10     
  Partials      168     168
Impacted Files Coverage Δ
pkg/skaffold/docker/parse.go 66.94% <100%> (ø) ⬆️
pkg/skaffold/jib/jib_maven.go 84.61% <100%> (+1.28%) ⬆️
pkg/skaffold/watch/changes.go 79.62% <100%> (-18.25%) ⬇️
pkg/skaffold/bazel/bazel.go 91.66% <100%> (+0.36%) ⬆️
pkg/skaffold/jib/jib_gradle.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e73775c...d273fda. Read the comment docs.

@@ -65,6 +66,8 @@ func GetDependencies(ctx context.Context, workspace string, a *latest.BazelArtif
deps = append(deps, "WORKSPACE")
}

logrus.Debugf("Found dependencies for bazel artifact: %s", deps)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should you use %v not a slice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it actually prints the exact same thing either way, but you're right %v is more correct. fixed

@nkubala nkubala dismissed dgageot’s stale review October 11, 2018 18:57

addressed your comments

@nkubala nkubala merged commit d4912b7 into GoogleContainerTools:master Oct 11, 2018
@nkubala nkubala deleted the logs branch October 11, 2018 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants