add peer ID to nil peer debug message

This commit is contained in:
Giovanni Petrantoni 2020-08-05 20:12:41 +09:00 committed by Dmitriy Ryajov
parent 1dbf0e222b
commit a3055cb24a
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -36,7 +36,7 @@ method subscribeTopic*(f: FloodSub,
let peer = f.peers.getOrDefault(peerId)
if peer == nil:
debug "subscribeTopic on a nil peer!"
debug "subscribeTopic on a nil peer!", peer = peerId
return
if topic notin f.floodsub: