Fix: inverted logic in loglevel_parse_range_string_common function
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 28 May 2024 19:08:22 +0000 (15:08 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 30 Aug 2024 20:39:40 +0000 (16:39 -0400)
commit4b2cdabc58998834249d4c3928d23979ff071530
tree26c3c063fbcdca46e4c4a5072d7208d9cd90992e
parentac894730dae67c960257c15af50be78a082541c2
Fix: inverted logic in loglevel_parse_range_string_common function

The mapping of numerical severity levels to their corresponding names
varies across different logging domains. Some domains, like
Java Util Logging, use higher numerical values for more severe logging
levels, while others, like Log4j2, use lower values for the same
purpose.

To accommodate this variation, the `loglevel_parse_range_string_common`
function has been updated. It now accepts the numerical value
representing the most severe logging level in a given domain. This
change ensures that log level specifications in the format `TRACE..` are
parsed correctly, regardless of the domain's convention.

Change-Id: Idbc3949ac33b69c71fce484a6d8912f59cdbe08d
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/loglevel.cpp
This page took 0.025174 seconds and 4 git commands to generate.