0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 15:00:51 +01:00

ircd: Minor socket log message improvements.

This commit is contained in:
Jason Volk 2017-08-23 15:06:58 -06:00
parent 30fb1d59d7
commit a57070a9cf

View file

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