1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-08 10:48:52 +00:00

Add error log for block write failed (#652)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2024-03-14 17:10:28 +08:00
committed by GitHub
parent 058b7405f1
commit 549c6b827f

View File

@@ -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}
}