From 740630eb1f758f4ee842e303ddf5b9c3c802c19c Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 13 Jun 2024 18:09:55 +0300 Subject: [PATCH 1/2] api/server: log FUSE INIT as debug!, not info This otherwise becomes too noisy when used in another library. --- src/api/server/sync_io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/server/sync_io.rs b/src/api/server/sync_io.rs index b0cf34ff..b79b0789 100644 --- a/src/api/server/sync_io.rs +++ b/src/api/server/sync_io.rs @@ -717,7 +717,7 @@ impl Server { match self.fs.init(capable) { Ok(want) => { let enabled = capable & want; - info!( + debug!( "FUSE INIT major {} minor {}\n in_opts: {:?}\nout_opts: {:?}", major, minor, capable, enabled ); From 34c553e6db0bf7030593200cb6325905f8a9d431 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 13 Jun 2024 18:10:54 +0300 Subject: [PATCH 2/2] linux_session: log channel already closed as debug This is too noisy when used as a library, and gets logged once per thread even. --- src/transport/fusedev/linux_session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport/fusedev/linux_session.rs b/src/transport/fusedev/linux_session.rs index 0d3ba836..d80ecf49 100644 --- a/src/transport/fusedev/linux_session.rs +++ b/src/transport/fusedev/linux_session.rs @@ -351,7 +351,7 @@ impl FuseChannel { } } } else if event.is_error() { - info!("FUSE channel already closed!"); + debug!("FUSE channel already closed!"); return Err(SessionFailure("epoll error".to_string())); } else { // We should not step into this branch as other event is not registered.