ovis icon indicating copy to clipboard operation
ovis copied to clipboard

reordering of subsystem log statements defeats log_level commands for debugging

Open baallan opened this issue 1 year ago • 2 comments

For the input

log_level level=WARNING
load name=${plugname}
log_level name=sampler.dstat level=INFO
config name=${plugname} producer=localhost${i} schema=${plugname} instance=localhost${i}/${plugname} component_id=${i}
start name=${plugname} interval=1000000 offset=0
log_level name=sampler.dstat level=DEBUG

the driver reorders the statements automatically to:

 log_level level=WARNING(null)
 log_level level=INFO name=sampler.dstat
 log_level level=DEBUG name=sampler.dstat
 load name=dstat
 config name=dstat producer=localhost1 schema=dstat instance=localhost1/dstat component_id=1
 start name=dstat interval=1000000 offset=0

as seen when starting ldmsd with an option like: "-L 54:${LOGDIR}/log_config.1"

When loading conf from the command line, we need to promote only the very first log_level statement which does not name a subsystem and must not promote log_level statements with named subsystems.

baallan avatar Jan 30 '24 02:01 baallan