Add debug output to BufferUtils

This commit is contained in:
babic_a committed 2021-04-14 11:59:56 +02:00
1 parent dfcb968e4b
commit 246d5e7dde
2 files changed
+8 -1

No files matched your search

+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) {