[WIP] Feat/debug accept message error#210
Conversation
Codecov Report
@@ Coverage Diff @@
## master #210 +/- ##
==========================================
+ Coverage 64.82% 65.00% +0.17%
==========================================
Files 25 25
Lines 2607 2626 +19
==========================================
+ Hits 1690 1707 +17
- Misses 573 575 +2
Partials 344 344
Continue to review full report at Codecov.
|
|
|
||
| result, err := validatorFunc(isRestart, sender, vouch, baseCid, stor) | ||
| if isPull { | ||
| log.Infof("\n ValidatePull, result=%s, err=%s", result, err) |
There was a problem hiding this comment.
Nit: Not sure why we have \n inside a log.Infof
| // when a DT request comes in on graphsync, it's a pull | ||
| chid = datatransfer.ChannelID{ID: msg.TransferID(), Initiator: p, Responder: t.peerID} | ||
| request := msg.(datatransfer.Request) | ||
| log.Debugf("will validate recieved gs request, chid=%s, request=%+v", chid, request) |
There was a problem hiding this comment.
| log.Debugf("will validate recieved gs request, chid=%s, request=%+v", chid, request) | |
| log.Debugf("will validate received gs request, chid=%s, request=%+v", chid, request) |
| return nil, t.events.OnResponseReceived(chid, dtResponse) | ||
| err = t.events.OnResponseReceived(chid, dtResponse) | ||
| if err != nil { | ||
| log.Errorf("\n error receieved from OnResponseReceived is %s", err) |
There was a problem hiding this comment.
Same comment here - why \n at the start?
| if response.IsVoucherResult() { | ||
| log.Infof("channel %s: received response %+v from provider is a voucher result", chid, response) | ||
| if !response.EmptyVoucherResult() { | ||
| log.Debug("processing non-empty voucher result") |
There was a problem hiding this comment.
Maybe add the chid as part of this logline, so that we can correlate to which channel this refers?
nonsense
left a comment
There was a problem hiding this comment.
added a few comments, that it'd be good to be addressed, but overall lgtm.
To help debug the missing
Acceptmessages on dealbot clients.