Skip to content

Commit

Permalink
changed log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
last-saiyan authored and radumarias committed Jul 31, 2024
1 parent b648d64 commit 9481d63
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/mount/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl EncryptedFsFuse3 {
}
}

#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn create_nod(
&self,
parent: u64,
Expand Down Expand Up @@ -280,7 +280,7 @@ impl From<FileAttr> for fuse3::raw::prelude::FileAttr {
}

impl Filesystem for EncryptedFsFuse3 {
#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::INFO))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::INFO))]
async fn init(&self, req: Request) -> Result<ReplyInit> {
trace!("");

Expand Down Expand Up @@ -352,7 +352,7 @@ impl Filesystem for EncryptedFsFuse3 {
trace!("");
}

#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn getattr(
&self,
req: Request,
Expand All @@ -374,7 +374,7 @@ impl Filesystem for EncryptedFsFuse3 {
}
}

#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::DEBUG))]
#[allow(clippy::cast_possible_truncation)]
async fn setattr(
&self,
Expand Down Expand Up @@ -544,7 +544,7 @@ impl Filesystem for EncryptedFsFuse3 {
})
}

#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn mknod(
&self,
req: Request,
Expand Down Expand Up @@ -582,7 +582,7 @@ impl Filesystem for EncryptedFsFuse3 {
})?
}

#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn mkdir(
&self,
req: Request,
Expand Down Expand Up @@ -649,7 +649,7 @@ impl Filesystem for EncryptedFsFuse3 {
})
}

#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn unlink(&self, req: Request, parent: Inode, name: &OsStr) -> Result<()> {
trace!("");

Expand Down Expand Up @@ -714,7 +714,7 @@ impl Filesystem for EncryptedFsFuse3 {
Ok(())
}

#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn rmdir(&self, req: Request, parent: Inode, name: &OsStr) -> Result<()> {
trace!("");

Expand Down Expand Up @@ -779,7 +779,7 @@ impl Filesystem for EncryptedFsFuse3 {
Ok(())
}

#[instrument(skip(self, name, new_name), fields(name = name.to_str().unwrap(), new_name = new_name.to_str().unwrap()), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self, name, new_name), fields(name = name.to_str().unwrap(), new_name = new_name.to_str().unwrap()), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn rename(
&self,
req: Request,
Expand Down Expand Up @@ -890,7 +890,7 @@ impl Filesystem for EncryptedFsFuse3 {
}
}

#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn open(&self, req: Request, inode: Inode, flags: u32) -> Result<ReplyOpen> {
trace!("");

Expand Down Expand Up @@ -950,7 +950,7 @@ impl Filesystem for EncryptedFsFuse3 {
}
}

#[instrument(skip(self), err(level = Level::INFO))]
#[instrument(skip(self), err(level = Level::WARN))]
async fn read(
&self,
req: Request,
Expand All @@ -973,7 +973,7 @@ impl Filesystem for EncryptedFsFuse3 {
}
}

#[instrument(skip(self, data), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self, data), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn write(
&self,
req: Request,
Expand Down Expand Up @@ -1005,14 +1005,14 @@ impl Filesystem for EncryptedFsFuse3 {
})
}

#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn statfs(&self, req: Request, inode: u64) -> Result<ReplyStatFs> {
trace!("");
warn!("implementation is a stub");
Ok(STATFS)
}

#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn release(
&self,
req: Request,
Expand Down Expand Up @@ -1059,7 +1059,7 @@ impl Filesystem for EncryptedFsFuse3 {
Ok(())
}

#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn flush(&self, req: Request, inode: Inode, fh: u64, lock_owner: u64) -> Result<()> {
trace!("");

Expand All @@ -1071,7 +1071,7 @@ impl Filesystem for EncryptedFsFuse3 {
Ok(())
}

#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::DEBUG))]
#[allow(clippy::cast_possible_wrap)]
async fn opendir(&self, req: Request, inode: Inode, flags: u32) -> Result<ReplyOpen> {
trace!("");
Expand Down Expand Up @@ -1140,14 +1140,14 @@ impl Filesystem for EncryptedFsFuse3 {
})
}

#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn releasedir(&self, req: Request, inode: Inode, fh: u64, flags: u32) -> Result<()> {
trace!("");

Ok(())
}

#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn access(&self, req: Request, inode: u64, mask: u32) -> Result<()> {
trace!("");

Expand All @@ -1164,7 +1164,7 @@ impl Filesystem for EncryptedFsFuse3 {
)
}

#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self, name), fields(name = name.to_str().unwrap()), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn create(
&self,
req: Request,
Expand Down Expand Up @@ -1231,7 +1231,7 @@ impl Filesystem for EncryptedFsFuse3 {
})
}

#[instrument(skip(self), err(level = Level::INFO), ret(level = Level::DEBUG))]
#[instrument(skip(self), err(level = Level::WARN), ret(level = Level::DEBUG))]
async fn copy_file_range(
&self,
req: Request,
Expand Down

0 comments on commit 9481d63

Please sign in to comment.