Add debug output to BufferUtils

This commit is contained in:
2021-04-14 11:59:56 +02:00
parent dfcb968e4b
commit 246d5e7dde
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -7,6 +7,7 @@
#include <rapidjson/istreamwrapper.h>
#include <rapidjson/document.h>
#include <rapidjson/stringbuffer.h>
#include <iostream>
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) {