Skip to content

Commit

Permalink
logging for nd parse err
Browse files Browse the repository at this point in the history
  • Loading branch information
jdutchak committed Aug 2, 2024
1 parent 280b764 commit 29393a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/oracle_node_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ func (node *OracleNode) ReceiveNodeData(stream network.Stream) {
for scanner.Scan() {
data := scanner.Bytes()
var page NodeDataPage

if err := json.Unmarshal(data, &page); err != nil {
logrus.Errorf("[-] Failed to unmarshal NodeData page: %v %s %+v", err, string(data), page)
continue
}

if err := json.Unmarshal(data, &page); err != nil {
logrus.Errorf("[-] Failed to unmarshal NodeData page: %v", err)
continue
Expand Down

0 comments on commit 29393a8

Please sign in to comment.