config: move debug/log configuration to the new API
This commit is contained in:
@@ -428,12 +428,12 @@ void ndpi_flow_info_freer(void *node);
|
||||
const char* print_cipher_id(u_int32_t cipher);
|
||||
int parse_proto_name_list(char *str, NDPI_PROTOCOL_BITMASK *bitmask, int inverted_logic);
|
||||
|
||||
extern int nDPI_LogLevel;
|
||||
extern int reader_log_level;
|
||||
|
||||
#if defined(NDPI_ENABLE_DEBUG_MESSAGES) && !defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION)
|
||||
#define LOG(log_level, args...) \
|
||||
{ \
|
||||
if(log_level <= nDPI_LogLevel) \
|
||||
if(log_level <= reader_log_level) \
|
||||
printf(args); \
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user