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-unixfs
Commits
226e7f43
Commit
226e7f43
authored
Oct 10, 2014
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add diagnostic logging
parent
a7b69500
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
diagnostics/diag.go
diagnostics/diag.go
+1
-0
No files found.
diagnostics/diag.go
View file @
226e7f43
...
...
@@ -195,6 +195,7 @@ func (d *Diagnostics) sendRequest(ctx context.Context, p *peer.Peer, pmes *Messa
}
func
(
d
*
Diagnostics
)
handleDiagnostic
(
p
*
peer
.
Peer
,
pmes
*
Message
)
(
*
Message
,
error
)
{
log
.
Debug
(
"HandleDiagnostic from %s for id = %s"
,
p
,
pmes
.
GetDiagID
())
resp
:=
newMessage
(
pmes
.
GetDiagID
())
d
.
diagLock
.
Lock
()
_
,
found
:=
d
.
diagMap
[
pmes
.
GetDiagID
()]
...
...
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