From 53095bacf345b6df01225ffd74818de0889ea79b Mon Sep 17 00:00:00 2001 From: Bob Chen Date: Tue, 2 Apr 2024 09:24:16 +0800 Subject: [PATCH] httpfs add error log (#436) --- fs/httpfs/httpfs_v2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/httpfs/httpfs_v2.cpp b/fs/httpfs/httpfs_v2.cpp index 57e07072..3a0b3fc8 100644 --- a/fs/httpfs/httpfs_v2.cpp +++ b/fs/httpfs/httpfs_v2.cpp @@ -206,6 +206,9 @@ class HttpFile_v2 : public fs::VirtualReadOnlyFile { } m_authorized = true; ret = op.resp.readv(iovec, iovcnt); + if (ret < 0) { + LOG_ERROR("HttpFs: read body failed, ", ERRNO()); + } return ret; }