mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 08:54:02 +01:00
ircd: Use the asio error stringifier.
This commit is contained in:
parent
f7224dc801
commit
6f392049ba
1 changed files with 4 additions and 7 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue