From e097e38365e8760c22bf65360e804419a64dfaed Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Fri, 8 May 2020 13:59:36 +0200 Subject: [PATCH] Remove DEBUG_OUTPUT as its not very useful --- sf-buffer/src/sf_replay.cpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/sf-buffer/src/sf_replay.cpp b/sf-buffer/src/sf_replay.cpp index ff9915a..6b26788 100644 --- a/sf-buffer/src/sf_replay.cpp +++ b/sf-buffer/src/sf_replay.cpp @@ -83,16 +83,6 @@ void sf_replay ( string filename = filename_base + filename_suffix.path; - #ifdef DEBUG_OUTPUT - using namespace date; - using namespace chrono; - - cout << "[" << system_clock::now() << "]"; - cout << "[sf_replay::sf_replay]"; - - cout << " Reading from filename " << filename << endl; - #endif - for (size_t file_index_offset=0; file_index_offset < FILE_MOD; file_index_offset += REPLAY_READ_BLOCK_SIZE) @@ -161,16 +151,6 @@ void sf_replay ( MODULE_N_BYTES, 0); - #ifdef DEBUG_OUTPUT - using namespace date; - using namespace chrono; - - cout << "[" << system_clock::now() << "]"; - cout << "[sf_replay::sf_replay]"; - cout << " Sent pulse_id "; - cout << current_pulse_id << endl; - #endif - current_pulse_id++; } } @@ -204,22 +184,6 @@ int main (int argc, char *argv[]) { ipc_stream << "ipc:///tmp/sf-replay-" << (int)module_id; const auto ipc_address = ipc_stream.str(); - #ifdef DEBUG_OUTPUT - using namespace date; - using namespace chrono; - - cout << "[" << system_clock::now() << "]"; - cout << "[sf_replay::receive]"; - - cout << " device " << device; - cout << " channel_name " << channel_name; - cout << " module_id " << module_id; - cout << " start_pulse_id " << start_pulse_id; - cout << " stop_pulse_id " << stop_pulse_id; - cout << " ipc_address " << ipc_address; - cout << endl; - #endif - auto ctx = zmq_ctx_new(); auto socket = zmq_socket(ctx, ZMQ_PUSH);