From 9e8165449b8c1c81162ee5fb30a83753df3a4183 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 4 Jul 2018 17:56:08 -0400 Subject: ... --- include/salticidae/network.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/salticidae/network.h') diff --git a/include/salticidae/network.h b/include/salticidae/network.h index 3b82927..1b20ce1 100644 --- a/include/salticidae/network.h +++ b/include/salticidae/network.h @@ -263,7 +263,8 @@ void MsgNetwork::Conn::on_read() { } auto it = mn->handler_map.find(msg.get_opcode()); if (it == mn->handler_map.end()) - SALTICIDAE_LOG_WARN("unknown command: %s", get_hex(msg.get_opcode())); + SALTICIDAE_LOG_WARN("unknown opcode: %s", + get_hex(msg.get_opcode()).c_str()); else /* call the handler */ { SALTICIDAE_LOG_DEBUG("got message %s from %s", @@ -497,6 +498,7 @@ void PeerNetwork::reset_conn_timeout(conn_t conn) { assert(conn->ev_timeout); conn->ev_timeout.del(); conn->ev_timeout.add_with_timeout(conn_timeout); + SALTICIDAE_LOG_INFO("reset timeout %.2f", conn_timeout); } template -- cgit v1.2.3