From c4071ef01a1869daa09e3bf3ac982fe8103492ac Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 19 Nov 2018 10:20:41 -0500 Subject: ... --- include/salticidae/network.h | 2 +- test/test_p2p_stress.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/salticidae/network.h b/include/salticidae/network.h index 1e63efa..8bee52d 100644 --- a/include/salticidae/network.h +++ b/include/salticidae/network.h @@ -492,7 +492,7 @@ void PeerNetwork::tcall_reset_timeout(ConnPool::Worker *worker, if (!conn->ev_timeout) return; conn->ev_timeout.del(); conn->ev_timeout.add_with_timeout(t, 0); - SALTICIDAE_LOG_INFO("reset timeout %.2f", t); + SALTICIDAE_LOG_DEBUG("reset connection timeout %.2f", t); }); } diff --git a/test/test_p2p_stress.cpp b/test/test_p2p_stress.cpp index 318e344..b272742 100644 --- a/test/test_p2p_stress.cpp +++ b/test/test_p2p_stress.cpp @@ -135,8 +135,8 @@ void install_proto(AppContext &app, const size_t &seg_buff_size) { net.terminate(conn); std::string s; for (const auto &p: app.tc) - s += salticidae::stringprintf(" %d(%d)", p.first.port, p.second.ncompleted); - SALTICIDAE_LOG_INFO("%d completed:%s", app.addr.port, s.c_str()); + s += salticidae::stringprintf(" %d(%d)", ntohs(p.first.port), p.second.ncompleted); + SALTICIDAE_LOG_INFO("%d completed:%s", ntohs(app.addr.port), s.c_str()); }); double t = salticidae::gen_rand_timeout(10); tc.timer.add_with_timeout(t, 0); -- cgit v1.2.3-70-g09d2