more useful debugging message

yamux
jmjatlanta 2017-09-25 13:33:42 -05:00
parent eac465012a
commit 974d328fb6
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ int libp2p_protocol_marshal(const unsigned char* incoming, size_t incoming_size,
}
if (handler == NULL) {
libp2p_logger_error("protocol", "Unable to find handler for %s.\n", str);
libp2p_logger_error("protocol", "Session [%s]: Unable to find handler for %s.\n", session->remote_peer_id, str);
return -1;
} else {
libp2p_logger_debug("protocol", "Found handler for %s.\n", str);