Enabling debugging on command line should enable debug logging

I believe an appropriate expectation is that if the user enables
debugging with a command-line flag, then that should also enable
messagse designated as debug messages in the code to be printed.
This commit is contained in:
Jonathan Kamens 2023-09-03 16:00:38 -04:00 committed by Fufu Fang
parent 4d323b846f
commit 3beccd2c2d
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@ parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc)
return 1;
case 'd':
add_arg(fuse_argv, fuse_argc, "-d");
CONFIG.log_type |= debug;
break;
case 'f':
add_arg(fuse_argv, fuse_argc, "-f");