cberner / fuser

Filesystem in Userspace (FUSE) for Rust
MIT License
836 stars 114 forks source link

Show operation in log messages #165

Closed zraktvor closed 3 years ago

zraktvor commented 3 years ago

After updating from the fuser crate to fuser, the log messages were reduced to header and inode. My new log output is:

12:10:49 [DEBUG] (12) fuser::request: FUSE(  4) ino 0x0000000000000001
12:10:49 [DEBUG] (12) fuser::request: FUSE(  6) ino 0x0000000000000001
12:10:49 [DEBUG] (12) fuser::request: FUSE(  8) ino 0x0000000000000001
12:10:57 [DEBUG] (12) fuser::request: FUSE( 10) ino 0x0000000000000001
12:10:57 [DEBUG] (12) fuser::request: FUSE( 12) ino 0x0000000000000023
12:10:57 [DEBUG] (12) fuser::request: FUSE( 14) ino 0x0000000000000020
12:10:57 [DEBUG] (12) fuser::request: FUSE( 16) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 18) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 20) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 22) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 24) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 26) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 28) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 30) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 32) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 34) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 36) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 38) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 40) ino 0x0000000000000022
12:10:57 [DEBUG] (12) fuser::request: FUSE( 42) ino 0x0000000000000022

That tells almost nothing. I would prefer the log message to include the operation.