Skip to content

Commit

Permalink
added log
Browse files Browse the repository at this point in the history
  • Loading branch information
vadlakondaswetha committed Oct 9, 2024
1 parent 12e7c0f commit 65b20c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/block/buffered_write_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/googlecloudplatform/gcsfuse/v2/internal/cache/util"
"github.com/googlecloudplatform/gcsfuse/v2/internal/locker"
"github.com/googlecloudplatform/gcsfuse/v2/internal/logger"
"github.com/googlecloudplatform/gcsfuse/v2/internal/storage/gcs"
)

Expand Down Expand Up @@ -47,6 +48,7 @@ func InitBufferedWriteHandler(objectName string, bucket gcs.Bucket) *BufferedWri
func (wh *BufferedWriteHandler) Write(data []byte, offset int64) (err error) {
wh.mu.Lock()
defer wh.mu.Unlock()
logger.Debugf("Recieved data offset: %d, size: %d", offset, wh.totalSize)
dataWritten := int(0)

if offset != wh.totalSize {
Expand Down

0 comments on commit 65b20c6

Please sign in to comment.