mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd: Minor socket log message improvements.
This commit is contained in:
parent
30fb1d59d7
commit
a57070a9cf
1 changed files with 4 additions and 4 deletions
|
@ -207,12 +207,15 @@ ircd::socket::operator()(const milliseconds &timeout,
|
||||||
|
|
||||||
if(unlikely(wp.expired()))
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!handle_ready(ec))
|
if(!handle_ready(ec))
|
||||||
|
{
|
||||||
|
log::debug("socket(%p): %s", this, ec.message());
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
handler(ec);
|
handler(ec);
|
||||||
});
|
});
|
||||||
|
@ -235,9 +238,6 @@ noexcept
|
||||||
{
|
{
|
||||||
using namespace boost::system::errc;
|
using namespace boost::system::errc;
|
||||||
|
|
||||||
if(ec)
|
|
||||||
log::debug("socket(%p): %s", (const void *)this, ec.message().c_str());
|
|
||||||
|
|
||||||
if(!timedout)
|
if(!timedout)
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue