Browse Source

Updated P2PConnected log fields

Taylor Gerring 10 năm trước cách đây
mục cha
commit
417f018498
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      logger/types.go

+ 4 - 2
logger/types.go

@@ -44,8 +44,10 @@ func (l *P2PConnecting) EventName() string {
 }
 
 type P2PConnected struct {
-	NumConnections int    `json:"num_connections"`
-	RemoteId       string `json:"remote_id"`
+	RemoteId            string `json:"remote_id"`
+	RemoteAddress       string `json:"remote_addr"`
+	RemoteVersionString string `json:"remote_version_string"`
+	NumConnections      int    `json:"num_connections"`
 	LogEvent
 }