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-dms3
Commits
29682216
Commit
29682216
authored
Jan 30, 2015
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log(dht/pb) include key in dht message loggable
parent
195c2f3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
routing/dht/pb/message.go
routing/dht/pb/message.go
+2
-0
No files found.
routing/dht/pb/message.go
View file @
29682216
...
...
@@ -6,6 +6,7 @@ import (
inet
"github.com/jbenet/go-ipfs/p2p/net"
peer
"github.com/jbenet/go-ipfs/p2p/peer"
eventlog
"github.com/jbenet/go-ipfs/thirdparty/eventlog"
util
"github.com/jbenet/go-ipfs/util"
)
var
log
=
eventlog
.
Logger
(
"dht.pb"
)
...
...
@@ -142,6 +143,7 @@ func (m *Message) Loggable() map[string]interface{} {
return
map
[
string
]
interface
{}{
"message"
:
map
[
string
]
string
{
"type"
:
m
.
Type
.
String
(),
"key"
:
util
.
Key
(
m
.
GetKey
())
.
Pretty
(),
},
}
}
...
...
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