]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/net: suppress info logs for frequent keepalive
authorYingxin Cheng <yingxincheng@gmail.com>
Sat, 2 Feb 2019 02:27:06 +0000 (10:27 +0800)
committerYingxin Cheng <yingxincheng@gmail.com>
Tue, 12 Feb 2019 08:48:02 +0000 (16:48 +0800)
The new unittest_seastar_messenger will print out the count of keepalive
attempts at the end of the execution.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
src/crimson/net/SocketConnection.cc

index 1cc8963bd4bd0f4dae1e8cbecd99068a81aca884..da5b1dba992b59fea59fe97135b3ebf99546b0e9 100644 (file)
@@ -572,7 +572,7 @@ SocketConnection::handle_keepalive2()
     .then([this] (auto buf) {
       k.ack.stamp = *reinterpret_cast<const ceph_timespec*>(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<const ceph_timespec*>(buf.get());
       k.ack_stamp = *t;
-      logger().info("{} keepalive2 ack {}", *this, t->tv_sec);
+      logger().debug("{} keepalive2 ack {}", *this, t->tv_sec);
     });
 }