OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix log.Debug
[bytom/vapor.git]
/
toolbar
/
precog
/
monitor
/
stats.go
diff --git
a/toolbar/precog/monitor/stats.go
b/toolbar/precog/monitor/stats.go
index
44ae8b1
..
550b179
100644
(file)
--- a/
toolbar/precog/monitor/stats.go
+++ b/
toolbar/precog/monitor/stats.go
@@
-138,7
+138,7
@@
func (m *monitor) processPeerInfo(dbTx *gorm.DB, peerInfo *peers.PeerInfo) error
return err
}
- log.
Debugf("peerInfo ping: %v", peerInfo.Ping
)
+ log.
WithFields(log.Fields{"ping": peerInfo.Ping}).Debug("peerInfo"
)
ping, err := time.ParseDuration(peerInfo.Ping)
if err != nil {
return err