Adding some logs to SharedMemory and SharedList

This commit is contained in:
Taha Afzal committed 2023-06-06 18:30:38 +00:00
1 parent 9093c72646
commit 4769f66eea
5 files changed
+19 -2

No files matched your search

+8
View File
@@ -83,7 +83,15 @@ struct BoostLowLevelSharedMemoryImpl {
block.truncate(size);
add_region(std::move(block));
return make_segment(size, _mappings.back().second.get_address());
} catch (const boost::interprocess::interprocess_exception &ex) {
LOG(md, Error,
"SharedMemory::create interprocess_exception what: {} error_code: "
"{} native_error: {}",
std::string(ex.what()), ex.get_error_code(),
ex.get_native_error());
return make_segment(0, nullptr);
} catch (...) {
LOG(md, Error, "SharedMemory::create unknown exception");
return make_segment(0, nullptr);
}
}