Skip to content

Commit

Permalink
log: increase p2p forge log level
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-tra committed Jan 9, 2025
1 parent 8fe3b78 commit 080aabc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ant.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/libp2p/go-libp2p/core/crypto"
"github.com/libp2p/go-libp2p/core/event"
"github.com/libp2p/go-libp2p/core/host"
"github.com/libp2p/go-libp2p/core/network"

Check failure on line 17 in ant.go

View workflow job for this annotation

GitHub Actions / Ants / Test

"github.com/libp2p/go-libp2p/core/network" imported and not used
"github.com/libp2p/go-libp2p/core/peer"
"github.com/libp2p/go-libp2p/core/peerstore"
"github.com/libp2p/go-libp2p/core/protocol"
Expand All @@ -24,6 +25,7 @@ import (
libp2pws "github.com/libp2p/go-libp2p/p2p/transport/websocket"
libp2pwebtransport "github.com/libp2p/go-libp2p/p2p/transport/webtransport"
"github.com/probe-lab/go-libdht/kad/key/bit256"
"go.uber.org/zap"
)

const (
Expand Down Expand Up @@ -89,7 +91,7 @@ func SpawnAnt(ctx context.Context, ps peerstore.Peerstore, ds ds.Batching, cfg *
p2pforge.WithOnCertLoaded(func() {
certLoadedChan <- struct{}{}
}),
p2pforge.WithLogger(logger.Desugar().Sugar()),
p2pforge.WithLogger(logger.Desugar().WithOptions(zap.IncreaseLevel(zap.InfoLevel)).Sugar()),
p2pforge.WithCertificateStorage(&certmagic.FileStorage{Path: cfg.CertPath}),
)
if err != nil {
Expand Down

0 comments on commit 080aabc

Please sign in to comment.