Fixup debug output (#1617)

This commit is contained in:
trapexit 2026-02-12 23:50:38 -05:00 • committed by GitHub
parent be4d388813
commit 3222de6c9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 1451 additions and 630 deletions

View file

@ -315,12 +315,16 @@ _main(int argc_,
SysLog::info("mergerfs v{} started",MERGERFS_VERSION);
SysLog::info("Go to https://trapexit.github.io/mergerfs/latest/support for support");
for(int i = 0; i < argc_; i++)
SysLog::info("argv[{}]: {}",i,argv_[i]);
options::parse(&args);
if(!cfg.errs.empty())
{
for(auto &err : cfg.errs)
{
std::string s = err.to_string();
const std::string s = err.to_string();
SysLog::error("error: {}",s);
fmt::println(stderr,"mergerfs: ERROR - {}",s);