Skip to content

Commit

Permalink
Add debug logging (#121)
Browse files Browse the repository at this point in the history
Co-authored-by: raulk <[email protected]>
  • Loading branch information
hannahhoward and raulk authored Mar 4, 2021
1 parent fcb8c29 commit 0f89d34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions responsemanager/queryexecutor.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (qe *queryExecutor) processQueriesWorker() {
log.Info("Empty task on peer request stack")
continue
}
log.Debugw("beginning response execution", "id", key.requestID, "peer", key.p.String(), "root_cid", taskData.request.Root().String())
status, err := qe.executeTask(key, taskData)
isCancelled := err != nil && isContextErr(err)
if isCancelled {
Expand All @@ -81,6 +82,7 @@ func (qe *queryExecutor) processQueriesWorker() {
case qe.messages <- &finishTaskRequest{key, status, err}:
case <-qe.ctx.Done():
}
log.Debugw("finishing response execution", "id", key.requestID, "peer", key.p.String(), "root_cid", taskData.request.Root().String())
}
qe.queryQueue.TasksDone(pid, tasks...)

Expand Down

0 comments on commit 0f89d34

Please sign in to comment.