From 0117d5f8ff386075b0c4cbec0cbe460fe3cfa680 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期四, 06 五月 2021 18:57:25 +0800 Subject: [PATCH] add logging, use boost.log. --- src/socket.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/socket.h b/src/socket.h index bd85fec..08a4b0a 100644 --- a/src/socket.h +++ b/src/socket.h @@ -114,7 +114,7 @@ std::unique_lock<std::mutex> lk(st->mutex); bool sendok = Send(remote, head, body, std::move(OnRecv)); if (!sendok) { - printf("send timeout\n"); + LOG_DEBUG() << "send timeout"; } if (sendok && st->cv.wait_until(lk, endtime) == std::cv_status::no_timeout) { return true; -- Gitblit v1.8.0