diqiu50 commented on code in PR #5905:
URL: https://github.com/apache/gravitino/pull/5905#discussion_r1990983471


##########
clients/filesystem-fuse/src/main.rs:
##########
@@ -193,6 +213,33 @@ fn main() -> Result<(), i32> {
                 path.to_string_lossy().to_string()
             };
 
+            if env::var("RUST_LOG").is_ok() {
+                init_tracing_subscriber(LevelFilter::INFO, "");
+            } else {
+                // if debug > 0, it means that we needs fuse_debug.
+                app_config.fuse.fuse_debug = debug > 0 || 
app_config.fuse.fuse_debug;
+                match debug {
+                    0 => {
+                        init_tracing_subscriber(LevelFilter::INFO, "");

Review Comment:
   My point is that if the user sets RUST_LOG='info' and debug=1, the log level 
is equivalent to RUST_LOG="info, gvfs_fuse=debug".
   
   If RUST_LOG="info, open_dal=debug, s3=debug" and debug=1, the actual effect 
should be RUST_LOG="info, open_dal=debug, s3=debug, gvfs_fuse=debug".
   
   If RUST_LOG="gvfs_fuse=debug" and debug=1, the actual effect should be 
RUST_LOG="gvfs_fuse=debug".
   
   If RUST_LOG="gvfs_fuse=trace" and debug=1, the actual effect should be 
RUST_LOG="gvfs_fuse=trace".
   
   Of course, debug=1 requires enabling FuseApiHandleDebug.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to