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

Improve log message levels and error messages #420

Merged
merged 2 commits into from
Dec 19, 2018
Merged

Conversation

carlosms
Copy link
Contributor

Fix #287.

Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

LGTM but I lack knowledge about the very internals to ensure nothing else is missing.
... but what I can see looks good, so let's say YASS 🎉

@@ -78,7 +78,7 @@ func (s *Syncer) Sync(ctx context.Context,
}

func (s *Syncer) fetch(ctx context.Context, repoInfo *lookout.RepositoryInfo, r *git.Repository, refspecs []config.RefSpec) (err error) {
ctxlog.Get(ctx).Infof("fetching references for repository %s: %v", repoInfo.CloneURL, refspecs)
ctxlog.Get(ctx).Debugf("fetching references for repository %s: %v", repoInfo.CloneURL, refspecs)
Copy link
Contributor

Choose a reason for hiding this comment

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

could you please check if we have any info level message somewhere in the callers that explains downloading?
I remember we make this one as info because fetching is a slow operation and it looks like lookoutd just hanged without it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We still have level=info msg="creating local repository for: .....git". But reading again I'm realizing now that message is only logged on repo initialization, the next time we fetch a new PR branch you will not see anything.

Fixed in 7359f3a.

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.

3 participants