Commit 9b8d9280 authored by Aaron Jacobs's avatar Aaron Jacobs

Fixed a logging bug.

parent 22c5b466
......@@ -261,7 +261,7 @@ func (c *Connection) ReadOp() (op fuseops.Op, err error) {
}
// Log the receipt of the operation.
c.debugLog(opID, 1, "<- %v", op)
c.debugLog(opID, 1, "<- %v", op.ShortDesc())
// Special case: responding to statfs is required to make mounting work on
// OS X. We don't currently expose the capability for the file system to
......
......@@ -80,9 +80,11 @@ func (o *commonOp) ShortDesc() (desc string) {
opName = opName[len(prefix) : len(opName)-len(suffix)]
}
desc = opName
// Include the inode number to which the op applies, if possible.
if f := v.Elem().FieldByName("Inode"); f.IsValid() {
desc = fmt.Sprintf("%s(inode=%v)", opName, f.Interface())
desc = fmt.Sprintf("%s(inode=%v)", desc, f.Interface())
}
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment