mpifileutils
mpifileutils copied to clipboard
mfu_debug_level usage
Generally, most tools set mfu_debug_level = MFU_LOG_VERBOSE
by default, and have a -q
option which sets mfu_debug_level = MFU_LOG_NONE
.
But there are several levels defined: https://github.com/hpc/mpifileutils/blob/05055d2ad2f99291af96cd863ae59dec3d328657/src/common/mfu_util.h#L63-L71
Some tools have a hidden -d
option which allows setting a specific level.
- It would be useful to be able to pass
-q
, but still see errors, sinceMFU_LOG_NONE
logs NOTHING. - Maybe we could more generically name
mfu_debug_level
tomfu_log_level
- Or something different, since the enum is named
mfu_loglevel
- Or something different, since the enum is named
- Maybe passing
-q
could just bump the log level down by one, instead of all the way toMFU_LOG_NONE
. Then, it could be possible to pass something like-qqq
to increasingly decrease the log level. - Along with this, maybe we can change tools from using a default of
MFU_LOG_VERBOSE
to using a default ofMFU_LOG_INFO
, since most do have a-v
option which at this point doesn't really do anything. Also, most messages printed areMFU_LOG_INFO
messages. - To incorporate all of this, we might want to evaluate some of the existing
MFU_LOG_INFO
messages and possibly change them toMFU_LOG_VERBOSE