warn on failed pubsub subscribe

This commit is contained in:
Dmitriy Ryajov 2020-02-25 16:26:46 -06:00
parent eb49d4b218
commit 52c270dcf9
1 changed files with 1 additions and 1 deletions

View File

@ -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.} =