diff options
Diffstat (limited to 'src/boost_asio.cpp')
-rw-r--r-- | src/boost_asio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/boost_asio.cpp b/src/boost_asio.cpp index 53f2fd6945..9e9107487a 100644 --- a/src/boost_asio.cpp +++ b/src/boost_asio.cpp @@ -9,14 +9,14 @@ namespace boost { void throw_exception(const std::exception& e) { - BMCWEB_LOG_CRITICAL << "Boost exception thrown " << e.what(); + 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 " << e.what() << " from " - << loc; + BMCWEB_LOG_CRITICAL("Boost exception thrown {} from {}:{}", e.what(), + loc.file_name(), loc.line()); std::terminate(); } } // namespace boost |