Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-graphsync
Commits
0f89d345
Unverified
Commit
0f89d345
authored
Mar 04, 2021
by
Hannah Howard
Committed by
GitHub
Mar 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug logging (#121)
Co-authored-by:
raulk
<
raul@protocol.ai
>
parent
fcb8c292
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
responsemanager/queryexecutor.go
responsemanager/queryexecutor.go
+2
-0
No files found.
responsemanager/queryexecutor.go
View file @
0f89d345
...
...
@@ -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
{
...
...
@@ -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
...
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment