0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 19:58:53 +02:00

ircd: Use the asio error stringifier.

This commit is contained in:
Jason Volk 2017-11-25 15:26:05 -07:00
parent f7224dc801
commit 6f392049ba

View file

@ -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())
{