-
Notifications
You must be signed in to change notification settings - Fork 30
enhance(webhook): add extra debug logging at various points in workflow #697
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #697 +/- ##
==========================================
- Coverage 55.05% 54.98% -0.07%
==========================================
Files 211 211
Lines 15994 16014 +20
==========================================
Hits 8805 8805
- Misses 6811 6831 +20
Partials 378 378
|
api/webhook.go
Outdated
|
|
||
| h, r, b := webhook.Hook, webhook.Repo, webhook.Build | ||
|
|
||
| logrus.Debugf("Hook generated from SCM: %v", h) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do these structs look when printed out? are they easy enough to read?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also leaving this here:
https://github.com/go-vela/server/blob/main/api/user.go#L75-L77
you might be able to use fields
plyr4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm ty
KellyMerrick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Closes go-vela/community#657
Trying to add some extra context during the webhook processing without overlapping some of the normal debug logging