cli: use WARN as the default log level when not explicitly set by user
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 9 Jun 2017 21:48:27 +0000 (17:48 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Jun 2017 22:18:17 +0000 (18:18 -0400)
commitc6d4d1ae9c00b7cabf44777a1ec5e4da8a68000b
tree1b018dae770ba6d3e696d3dac9b609d5c61ab4e3
parentfc11b6a68b415ddd078fdda9ba905b88ddde8c9b
cli: use WARN as the default log level when not explicitly set by user

For all known log levels (library, CLI, plugins, etc.), when the
dedicated log level environment variable is unset, make the CLI set it
to WARN. This means that you can always override the default, -v, or -d
log level with a specific environment variable. For example, if you need
VERBOSE logging for all the loggers but the library's:

    BABELTRACE_LOGGING_GLOBAL_LEVEL=N babeltrace -d ...

Using WARN as the default log level will help spot bugs quickly without
a specific option to use this log level.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
cli/babeltrace.c
This page took 0.023689 seconds and 4 git commands to generate.