Skip to content

Commit 4e1be66

Browse files
committed
output repeating error to the node log
1 parent d9e8f58 commit 4e1be66

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ require (
3535
github.com/karalabe/hid v1.0.1-0.20240919124526-821c38d2678e
3636
github.com/klauspost/cpuid/v2 v2.2.8
3737
github.com/labstack/echo/v4 v4.13.3
38-
github.com/labstack/gommon v0.4.2
3938
github.com/libp2p/go-libp2p v0.37.0
4039
github.com/libp2p/go-libp2p-kad-dht v0.28.0
4140
github.com/libp2p/go-libp2p-kbucket v0.6.4
@@ -116,6 +115,7 @@ require (
116115
github.com/koron/go-ssdp v0.0.4 // indirect
117116
github.com/kr/pretty v0.3.1 // indirect
118117
github.com/kr/text v0.2.0 // indirect
118+
github.com/labstack/gommon v0.4.2 // indirect
119119
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
120120
github.com/libp2p/go-cidranger v1.1.0 // indirect
121121
github.com/libp2p/go-flow-metrics v0.2.0 // indirect

node/node.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
"time"
3030

3131
"github.com/algorand/go-deadlock"
32-
"github.com/labstack/gommon/log"
3332

3433
"github.com/algorand/go-algorand/agreement"
3534
"github.com/algorand/go-algorand/agreement/gossip"
@@ -407,7 +406,7 @@ func (node *AlgorandFullNode) Start() error {
407406
return
408407
case <-ticker.C:
409408
// continue logging the error periodically
410-
log.Errorf(node.hybridError)
409+
node.log.Error(node.hybridError)
411410
}
412411
}
413412
}()

0 commit comments

Comments
 (0)