Skip to content

Commit

Permalink
add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Apr 29, 2024
1 parent 41f3f5f commit c579e48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zboxcore/sdk/chunked_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ func (su *ChunkedUpload) process() error {
if chunks.isFinal {
if su.fileMeta.ActualHash == "" {
su.fileMeta.ActualHash, err = su.chunkReader.GetFileHash()
logger.Logger.Info("ActualHash: ", su.fileMeta.ActualHash)
if err != nil {
if su.statusCallback != nil {
su.statusCallback.Error(su.allocationObj.ID, su.fileMeta.RemotePath, su.opCode, err)
Expand All @@ -476,7 +477,7 @@ func (su *ChunkedUpload) process() error {
}
}
if chunks.totalReadSize == 0 {
logger.Logger.Info("isFinal: ", chunks.isFinal)
logger.Logger.Info("isFinal: ", chunks.isFinal, " totalReadSize: ", su.progress.ReadLength)
break
}
//chunk has not be uploaded yet
Expand Down

0 comments on commit c579e48

Please sign in to comment.