diff --git a/CMakeLists.txt b/CMakeLists.txt index dc317ef..45791a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,10 @@ set (SF_DAQ_BUFFER_VERSION "1.0.0") set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) -# Download and unpack googletest at configure time +set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DMY_DEBUG") +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG_OUTPUT") +# Download and unpack googletest at configure time configure_file(googletest.in googletest-download/CMakeLists.txt) execute_process( diff --git a/core-buffer/src/BufferUtils.cpp b/core-buffer/src/BufferUtils.cpp index b6b1bb5..5d9dd9f 100644 --- a/core-buffer/src/BufferUtils.cpp +++ b/core-buffer/src/BufferUtils.cpp @@ -7,6 +7,7 @@ #include #include #include +#include using namespace std; using namespace buffer_config; @@ -92,6 +93,10 @@ void* BufferUtils::connect_socket( string ipc_address = BUFFER_LIVE_IPC_URL + detector_name + "-" + stream_name; +#ifdef DEBUG_OUTPUT + cout << "[BufferUtils::connect_socket]"; + cout << " IPC address: " << ipc_address << endl; +#endif void* socket = zmq_socket(ctx, ZMQ_SUB); if (socket == nullptr) {