From a57070a9cf9db7f6e40de02d977c799b7dec3b3d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 23 Aug 2017 15:06:58 -0600 Subject: [PATCH] ircd: Minor socket log message improvements. --- ircd/socket.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ircd/socket.cc b/ircd/socket.cc index 5ea73815c..7f4b137d7 100644 --- a/ircd/socket.cc +++ b/ircd/socket.cc @@ -207,12 +207,15 @@ ircd::socket::operator()(const milliseconds &timeout, if(unlikely(wp.expired())) { - log::warning("socket(%p): belated callback to handler...", (const void *)this); + log::warning("socket(%p): belated callback to handler...", this); return; } if(!handle_ready(ec)) + { + log::debug("socket(%p): %s", this, ec.message()); return; + } handler(ec); }); @@ -235,9 +238,6 @@ noexcept { using namespace boost::system::errc; - if(ec) - log::debug("socket(%p): %s", (const void *)this, ec.message().c_str()); - if(!timedout) timer.cancel();