From 15a0d505a06ee2b2d0bb764296080a8d75de7052 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 3 Aug 2022 10:42:01 -0400 Subject: [PATCH] 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 --- src/logging/log.h | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.34.1