diff options
author | Determinant <[email protected]> | 2018-07-04 17:56:08 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-07-04 17:56:08 -0400 |
commit | 9e8165449b8c1c81162ee5fb30a83753df3a4183 (patch) | |
tree | c6947968f6c052a20ec6e7df18a634031831470e /include/salticidae/network.h | |
parent | 9e89c3b330a8d7cc4fb256411b755c126ba37ec3 (diff) |
...
Diffstat (limited to 'include/salticidae/network.h')
-rw-r--r-- | include/salticidae/network.h | 4 |
1 files changed, 3 insertions, 1 deletions
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<MsgType>::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<MsgType>::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<typename MsgType> |