From 6f392049bae92362438558159e2f78f8b157d0b5 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 25 Nov 2017 15:26:05 -0700 Subject: [PATCH] ircd: Use the asio error stringifier. --- ircd/server.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ircd/server.cc b/ircd/server.cc index 28ed5cb5b..6813d0500 100644 --- a/ircd/server.cc +++ b/ircd/server.cc @@ -91,10 +91,9 @@ catch(const boost::system::system_error &e) { using namespace boost::system::errc; - log::error("read error: %s: %s: %s", + log::error("read error: %s: %s", string(server.n->remote), - e.code().category().name(), - e.what()); + string(e)); if(ircd::runlevel == ircd::runlevel::QUIT) throw; @@ -136,11 +135,9 @@ catch(const boost::system::system_error &e) { using namespace boost::system::errc; - log::error("write error: %s: (%s #%d) %s", + log::error("write error: %s %s", string(server.n->remote), - e.code().category().name(), - e.code().value(), - e.what()); + string(e)); switch(e.code().value()) {