From cf92062e3f03191c98b95776d9335345d4ee8287 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Sat, 2 Feb 2019 10:27:06 +0800 Subject: [PATCH] crimson/net: suppress info logs for frequent keepalive The new unittest_seastar_messenger will print out the count of keepalive attempts at the end of the execution. Signed-off-by: Yingxin Cheng --- src/crimson/net/SocketConnection.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crimson/net/SocketConnection.cc b/src/crimson/net/SocketConnection.cc index 1cc8963bd4bd0..da5b1dba992b5 100644 --- a/src/crimson/net/SocketConnection.cc +++ b/src/crimson/net/SocketConnection.cc @@ -572,7 +572,7 @@ SocketConnection::handle_keepalive2() .then([this] (auto buf) { k.ack.stamp = *reinterpret_cast(buf.get()); seastar::shared_future<> f = send_ready.then([this] { - logger().info("{} keepalive2 {}", *this, k.ack.stamp.tv_sec); + logger().debug("{} keepalive2 {}", *this, k.ack.stamp.tv_sec); return socket->write_flush(make_static_packet(k.ack)); }); send_ready = f.get_future(); @@ -587,7 +587,7 @@ SocketConnection::handle_keepalive2_ack() .then([this] (auto buf) { auto t = reinterpret_cast(buf.get()); k.ack_stamp = *t; - logger().info("{} keepalive2 ack {}", *this, t->tv_sec); + logger().debug("{} keepalive2 ack {}", *this, t->tv_sec); }); } -- 2.39.5