more useful debugging message

This commit is contained in:
jmjatlanta 2017-09-25 13:33:42 -05:00
parent eac465012a
commit 974d328fb6

View file

@ -57,7 +57,7 @@ int libp2p_protocol_marshal(const unsigned char* incoming, size_t incoming_size,
} }
if (handler == NULL) { 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; return -1;
} else { } else {
libp2p_logger_debug("protocol", "Found handler for %s.\n", str); libp2p_logger_debug("protocol", "Found handler for %s.\n", str);