Skip to content

Commit

Permalink
libp2p logging
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbundalo committed Aug 6, 2024
1 parent b483114 commit be29501
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions network/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"os"
"sync"
"time"

Expand Down Expand Up @@ -118,6 +119,7 @@ func NewServer(logger hclog.Logger, config *Config) (*Server, error) {
return addrs
}

os.Setenv("IPFS_LOGGING", "debug")
host, err := libp2p.New(
// Use noise as the encryption protocol
libp2p.Security(noise.ID, noise.New),
Expand Down

0 comments on commit be29501

Please sign in to comment.