From: Simon Marchi Date: Wed, 3 Aug 2022 14:42:01 +0000 (-0400) Subject: logging: remove check for BT_LOG_OUTPUT_LEVEL X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=15a0d505a06ee2b2d0bb764296080a8d75de7052;p=babeltrace.git logging: remove check for BT_LOG_OUTPUT_LEVEL 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 Reviewed-by: Philippe Proulx Tested-by: jenkins --- diff --git a/src/logging/log.h b/src/logging/log.h index ce4299fb..89ac5fc7 100644 --- a/src/logging/log.h +++ b/src/logging/log.h @@ -172,12 +172,6 @@ */ #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