From 549c6b827f6ef75d2e2e7b93bf14186e83ddf883 Mon Sep 17 00:00:00 2001 From: feiniks <36756310+feiniks@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:10:28 +0800 Subject: [PATCH] Add error log for block write failed (#652) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 杨赫然 --- fileserver/sync_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileserver/sync_api.go b/fileserver/sync_api.go index acbad47a..dd6c7883 100644 --- a/fileserver/sync_api.go +++ b/fileserver/sync_api.go @@ -827,7 +827,7 @@ func putSendBlockCB(rsp http.ResponseWriter, r *http.Request) *appError { } if err := blockmgr.Write(storeID, blockID, r.Body); err != nil { - err := fmt.Errorf("Failed to close block %.8s:%s", storeID, blockID) + err := fmt.Errorf("Failed to write block %.8s:%s: %v", storeID, blockID, err) return &appError{err, "", http.StatusInternalServerError} }