|
|
|
|
|
|
|
|
#include "./parallel.hpp" |
|
|
#include "./parallel.hpp" |
|
|
|
|
|
|
|
|
|
|
|
#include <dds/util/signal.hpp> |
|
|
|
|
|
|
|
|
#include <dds/util/log.hpp> |
|
|
#include <dds/util/log.hpp> |
|
|
|
|
|
|
|
|
using namespace dds; |
|
|
using namespace dds; |
|
|
|
|
|
|
|
|
void dds::log_exception(std::exception_ptr eptr) noexcept { |
|
|
void dds::log_exception(std::exception_ptr eptr) noexcept { |
|
|
try { |
|
|
try { |
|
|
std::rethrow_exception(eptr); |
|
|
std::rethrow_exception(eptr); |
|
|
|
|
|
} catch (const dds::user_cancelled&) { |
|
|
|
|
|
// Don't log this one. The user knows what they did |
|
|
} catch (const std::exception& e) { |
|
|
} catch (const std::exception& e) { |
|
|
dds_log(error, "{}", e.what()); |
|
|
dds_log(error, "{}", e.what()); |
|
|
} |
|
|
} |