logging: remove check for BT_LOG_OUTPUT_LEVEL
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 3 Aug 2022 14:42:01 +0000 (10:42 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 11 Sep 2023 15:24:02 +0000 (11:24 -0400)
This helps the case of TUs including headers that do logging, but don't
do logging themselves.

Change-Id: Ia1b51b4d30f120c68f96bcbd2db90adfc8ee98c9
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10811
CI-Build: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/logging/log.h

index ce4299fbb994aa5417195e0b6472948900c9d463..89ac5fc7c54ca3e8fffb858fc1a816fec5762add 100644 (file)
  */
 #if defined(BT_LOG_OUTPUT_LEVEL)
        #define _BT_LOG_OUTPUT_LEVEL BT_LOG_OUTPUT_LEVEL
-#else
-       /*
-        * We disallow this to make sure Babeltrace modules always
-        * have their own local log level.
-        */
-       #error No log level symbol specified: please define BT_LOG_OUTPUT_LEVEL before including this header.
 #endif
 
 /* "Tag" is a compound string that could be associated with a log message. It
This page took 0.02609 seconds and 4 git commands to generate.