diff --git a/net/net.go b/net/net.go index 0c042e0b..4d4b6430 100644 --- a/net/net.go +++ b/net/net.go @@ -271,7 +271,7 @@ func (n *net) AddThread(ctx context.Context, addr ma.Multiaddr, opts ...core.New }); err != nil { return } - if args.ThreadKey.CanRead() { + if args.ThreadKey.CanRead() || args.LogKey != nil { var linfo thread.LogInfo linfo, err = createLog(n.host.ID(), args.LogKey) if err != nil {