Add debug output on file rollover

This commit is contained in:
2018-12-05 15:45:24 +01:00
parent 78d96f8bb1
commit 2686b04b4c
+7
View File
@@ -177,6 +177,13 @@ void ProcessManager::write_h5()
// When using file roll over, write the file format before switching to the next file.
if (!writer->is_data_for_current_file(received_data.first->frame_index)) {
#ifdef DEBUG_OUTPUT
using namespace date;
cout << "[" << std::chrono::system_clock::now() << "]";
cout << "[ProcessManager::write_h5] Frame index " << received_data.first->frame_index;
cout << " does not belong to current file. Write format before the file will be closed." << endl;
#endif
write_h5_format(writer->get_h5_file());
}