blob: 9e9107487a8bb394f8b82975fbfa28c8bfc7abc1 [file] [log] [blame]
#include "logging.hpp"
#include <boost/asio/impl/src.hpp>
#include <boost/assert/source_location.hpp>
#include <exception>
namespace boost
{
void throw_exception(const std::exception& e)
{
BMCWEB_LOG_CRITICAL("Boost exception thrown {}", e.what());
std::terminate();
}
void throw_exception(const std::exception& e, const source_location& loc)
{
BMCWEB_LOG_CRITICAL("Boost exception thrown {} from {}:{}", e.what(),
loc.file_name(), loc.line());
std::terminate();
}
} // namespace boost