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 debug logs for job enqueue #27

Merged
merged 1 commit into from
Jun 13, 2019
Merged

Conversation

carlosms
Copy link
Contributor

Some extra logs to see what's going on and detect problems.

@carlosms carlosms requested a review from a team June 12, 2019 14:20
@carlosms carlosms changed the title Add debug logs for job enqueue [WiP] Add debug logs for job enqueue Jun 12, 2019
@carlosms carlosms removed the request for review from a team June 12, 2019 14:36
@carlosms carlosms changed the title [WiP] Add debug logs for job enqueue [Add debug logs for job enqueue Jun 12, 2019
@carlosms carlosms changed the title [Add debug logs for job enqueue Add debug logs for job enqueue Jun 12, 2019
@carlosms carlosms requested a review from a team June 12, 2019 14:50
issue.go Outdated
@@ -47,9 +48,10 @@ func (s *IssueSyncer) QueueRepository(q queue.Queue, owner, repo string) error {
return err
}

logger.Infof("queue request")
l := logger.With(log.Fields{"issue": i.GetNumber()})
l.Infof("queue request")
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe use debug level here?

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 just extended what we had. I'm ok changing everything to debug, and adding LOG_LEVEL=debug to the compose.

Is that preferable?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would love to keep starting to publish queue jobs type:reporitory/issues/..., finished to publish queue jobs type:reporitory/issues/... as INFO. So we can see what it is doing. But change queue request to DEBUG so it doesn't spam a lot by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 Done. Force-pushed since it's a small change.

user.go Outdated Show resolved Hide resolved
Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
Copy link
Contributor

@smacker smacker left a comment

Choose a reason for hiding this comment

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

thank you

@carlosms carlosms merged commit ec65b2f into src-d:master Jun 13, 2019
@carlosms carlosms deleted the logs-queue branch June 13, 2019 12:14
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.

None yet

2 participants