build: new FLB_HTTP_CLIENT_DEBUG option (disabled by default)
@@ -164,6 +164,9 @@ option(FLB_FILTER_NEST "Enable nest filter" Yes)
option(FLB_FILTER_LUA "Enable Lua scripting filter" Yes)
option(FLB_FILTER_RECORD_MODIFIER "Enable record_modifier filter" Yes)
+# Debug callbacks
+option(FLB_HTTP_CLIENT_DEBUG "Enable HTTP Client debug callbacks" No)
+
# Enable all features
if(FLB_ALL)
# Global
@@ -205,6 +208,7 @@ if(FLB_DEV)
set(FLB_TRACE On)
set(FLB_METRICS On)
set(FLB_HTTP_SERVER On)
+ set(FLB_HTTP_CLIENT_DEBUG On)
set(FLB_TESTS_INTERNAL On)
endif()
@@ -213,6 +217,9 @@ if(FLB_OUT_TD)
set(FLB_TLS ON)
endif()
+if(FLB_HTTP_CLIENT_DEBUG)
+ FLB_DEFINITION(FLB_HTTP_CLIENT_DEBUG)
+endif()
# Set Fluent Bit dependency libraries path
include(cmake/libraries.cmake)
