From 52c270dcf9a26cb822de1081ee01ff0a537beed6 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 25 Feb 2020 16:26:46 -0600 Subject: [PATCH] warn on failed pubsub subscribe --- libp2p/switch.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/switch.nim b/libp2p/switch.nim index 26028d015..111272ba5 100644 --- a/libp2p/switch.nim +++ b/libp2p/switch.nim @@ -321,7 +321,7 @@ proc subscribeToPeer(s: Switch, peerInfo: PeerInfo) {.async, gcsafe.} = let conn = await s.dial(peerInfo, s.pubSub.get().codec) await s.pubSub.get().subscribeToPeer(conn) except CatchableError as exc: - trace "unable to initiate pubsub", exc = exc.msg + warn "unable to initiate pubsub", exc = exc.msg s.dialedPubSubPeers.excl(peerInfo.id) proc subscribe*(s: Switch, topic: string, handler: TopicHandler): Future[void] {.gcsafe.} =