From c9535395af71b1c8b04e992fc46ce0cf0c20e9db Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Fri, 24 Nov 2023 21:54:54 -0500 Subject: [PATCH] better config parsing debug messages --- plugins/stat_socket/stat_socket.cc | 3 ++- trunk-recorder/config.h | 2 +- trunk-recorder/plugin_manager/plugin_api.h | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/stat_socket/stat_socket.cc b/plugins/stat_socket/stat_socket.cc index bbe9e4d1c..e287666a2 100644 --- a/plugins/stat_socket/stat_socket.cc +++ b/plugins/stat_socket/stat_socket.cc @@ -9,7 +9,8 @@ //#include "../../trunk-recorder/systems/system.h" #include "../../trunk-recorder/plugin_manager/plugin_api.h" #include "../trunk-recorder/gr_blocks/decoder_wrapper.h" -#include // for BOOST_DLL_ALIAS +#include // for BOOST_DLL_ALIAS +#define JSON_DIAGNOSTICS 1 #include typedef struct stat_plugin_t stat_plugin_t; diff --git a/trunk-recorder/config.h b/trunk-recorder/config.h index ddc98bbf0..9cb70798c 100644 --- a/trunk-recorder/config.h +++ b/trunk-recorder/config.h @@ -29,7 +29,7 @@ #include "source.h" #include "systems/system.h" #include "plugin_manager/plugin_manager.h" - +#define JSON_DIAGNOSTICS 1 #include bool load_config(std::string config_file, Config& config, gr::top_block_sptr& tb, std::vector& sources, std::vector& systems); diff --git a/trunk-recorder/plugin_manager/plugin_api.h b/trunk-recorder/plugin_manager/plugin_api.h index 777a8d666..842d5c3ee 100644 --- a/trunk-recorder/plugin_manager/plugin_api.h +++ b/trunk-recorder/plugin_manager/plugin_api.h @@ -7,6 +7,7 @@ #include "../systems/system.h" #include "../systems/parser.h" #include "../formatter.h" +#define JSON_DIAGNOSTICS 1 #include typedef enum {