mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-19 16:16:48 +00:00
log: default debug log path to empty; skip set when empty
libfuse previously initialized its debug log filepath to "/dev/stderr", forcing the config layer to reopen stderr on every load whether or not the user asked for it. Default the libfuse log path to "" and have the mergerfs config layer only forward the request to libfuse when the user supplied an explicit path.
This commit is contained in:
committed by
trapexit
parent
981d5473ee
commit
e67b7d0825
@@ -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
|
||||
|
||||
@@ -63,7 +63,7 @@ _debug_set_output_stderr()
|
||||
auto new_log_file = std::shared_ptr<FILE>(stderr,[](FILE*){});
|
||||
|
||||
fuse_cfg.log_file(new_log_file);
|
||||
fuse_cfg.log_filepath("/dev/stderr");
|
||||
fuse_cfg.log_filepath("");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user