Skip to content

Commit

Permalink
Access log for read op also outputs file handle (#5143)
Browse files Browse the repository at this point in the history
Signed-off-by: Changxin Miao <[email protected]>
  • Loading branch information
polyrabbit authored Sep 5, 2024
1 parent 6a4999f commit e4eee28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vfs/vfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ func (v *VFS) Read(ctx Context, ino Ino, buf []byte, off uint64, fh uint64) (n i

defer func() {
readSizeHistogram.Observe(float64(n))
logit(ctx, "read", err, "(%d,%d,%d): (%d)", ino, size, off, n)
logit(ctx, "read", err, "(%d,%d,%d,%d): (%d)", ino, size, off, fh, n)
}()
h := v.findHandle(ino, fh)
if h == nil {
Expand Down

0 comments on commit e4eee28

Please sign in to comment.