Control libfuse logs with persist.sys.fuse.log prop
Test: Manual
Bug: 154925707
Change-Id: Ibc5d6c066a8bb1b45ca5f532b7aed5aab2ae46d1
diff --git a/jni/FuseDaemon.cpp b/jni/FuseDaemon.cpp
index 9a27c5b..50d8d3c 100644
--- a/jni/FuseDaemon.cpp
+++ b/jni/FuseDaemon.cpp
@@ -1622,7 +1622,9 @@
}
// Custom logging for libfuse
- fuse_set_log_func(fuse_logger);
+ if (android::base::GetBoolProperty("persist.sys.fuse.log", false)) {
+ fuse_set_log_func(fuse_logger);
+ }
struct fuse_session
* se = fuse_session_new(&args, &ops, sizeof(ops), &fuse_default);