diff --git a/src/config_log_file.cpp b/src/config_log_file.cpp index 65271990..f37c1f6d 100644 --- a/src/config_log_file.cpp +++ b/src/config_log_file.cpp @@ -26,7 +26,8 @@ LogFile::LogFile(const std::string &s_) { - fuse_debug_set_output(s_); + if(!s_.empty()) + fuse_debug_set_output(s_); } std::string diff --git a/vendored/libfuse/lib/debug.cpp b/vendored/libfuse/lib/debug.cpp index 57a48c2c..7dfd9027 100644 --- a/vendored/libfuse/lib/debug.cpp +++ b/vendored/libfuse/lib/debug.cpp @@ -63,7 +63,7 @@ _debug_set_output_stderr() auto new_log_file = std::shared_ptr(stderr,[](FILE*){}); fuse_cfg.log_file(new_log_file); - fuse_cfg.log_filepath("/dev/stderr"); + fuse_cfg.log_filepath(""); return 0; }