mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-09 03:08:57 +00:00
Add error log for block write failed (#652)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
@@ -827,7 +827,7 @@ func putSendBlockCB(rsp http.ResponseWriter, r *http.Request) *appError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := blockmgr.Write(storeID, blockID, r.Body); err != nil {
|
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}
|
return &appError{err, "", http.StatusInternalServerError}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user