Fixes to version 1.0.0-rc.18
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include "MakeDirectory.h"
|
||||
#include "../common/CheckPath.h"
|
||||
#include "../common/Logger.h"
|
||||
#include "../common/JFJochException.h"
|
||||
|
||||
HDF5Writer::HDF5Writer(const StartMessage &request)
|
||||
: start_message(request) {
|
||||
@@ -116,7 +118,11 @@ std::optional<std::string> HDF5Writer::GetZMQAddr() {
|
||||
void HDF5Writer::Write(const CompressedImage &msg) {
|
||||
if (master_file) {
|
||||
std::lock_guard<std::mutex> lock(hdf5_mutex);
|
||||
master_file->WriteCalibration(msg);
|
||||
try {
|
||||
master_file->WriteCalibration(msg);
|
||||
} catch (const JFJochException &e) {
|
||||
spdlog::error("Calibration {} not written {}", msg.channel, e.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user