OSDN Git Service

add ping
authorHAOYUatHZ <haoyu@protonmail.com>
Mon, 19 Aug 2019 04:56:32 +0000 (12:56 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Mon, 19 Aug 2019 04:56:32 +0000 (12:56 +0800)
toolbar/precog/monitor/stats.go

index 86c600c..88c819e 100644 (file)
@@ -5,6 +5,7 @@ import (
        "fmt"
 
        "github.com/jinzhu/gorm"
+       log "github.com/sirupsen/logrus"
 
        "github.com/vapor/crypto/ed25519/chainkd"
        "github.com/vapor/netsync/peers"
@@ -64,6 +65,8 @@ func (m *monitor) savePeerInfo(peerInfo *peers.PeerInfo) error {
                return err
        }
 
+       log.Debug("peerInfo.Ping:", peerInfo.Ping)
+
        ormNodeLiveness := &orm.NodeLiveness{
                NodeID:        ormNode.ID,
                BestHeight:    ormNode.BestHeight,