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

log: add debug logs for webhook #1380

Merged
merged 4 commits into from
Feb 12, 2024
Merged

Conversation

EnriqueL8
Copy link
Contributor

@EnriqueL8 EnriqueL8 commented Jul 27, 2023

Increase log coverage for webhooks as it's quite helpful when debugging

Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
@codecov-commenter
Copy link

codecov-commenter commented Jul 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2d92165) 99.99% compared to head (135d953) 99.99%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1380   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files         321      321           
  Lines       23108    23111    +3     
=======================================
+ Hits        23106    23109    +3     
  Misses          1        1           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -403,7 +402,7 @@ func (wh *WebHooks) attemptRequest(ctx context.Context, sub *core.Subscription,
Status: resp.StatusCode(),
Headers: fftypes.JSONObject{},
}
// log.L(wh.ctx).Infof("Webhook<- %s %s event %s on subscription %s returned %d", req.method, req.url, event.ID, sub.ID, res.Status)
log.L(wh.ctx).Infof("Webhook<- %s %s on subscription %s returned %d", req.method, req.url, sub.ID, res.Status)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be INFO or DEBUG level? Looks like the corresponding log message above is DEBUG.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure happy to change it to DEBUG

@EnriqueL8 EnriqueL8 requested a review from a team as a code owner January 17, 2024 16:24
go.work Outdated Show resolved Hide resolved
Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
@nguyer nguyer merged commit 910ecc2 into hyperledger:main Feb 12, 2024
14 checks passed
@nguyer nguyer deleted the add_logs_webhooks branch February 12, 2024 20:42
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

3 participants