mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-31 13:14:13 +00:00
log would_block error at info level
This commit is contained in:
parent
89f9bec49a
commit
e5f75eb61c
@ -662,7 +662,10 @@ namespace transport
|
|||||||
if (!ec)
|
if (!ec)
|
||||||
i2p::transport::transports.UpdateSentBytes (headerLen + payloadLen);
|
i2p::transport::transports.UpdateSentBytes (headerLen + payloadLen);
|
||||||
else
|
else
|
||||||
LogPrint (eLogError, "SSU2: Send exception: ", ec.message (), " to ", to);
|
{
|
||||||
|
LogPrint (ec == boost::asio::error::would_block ? eLogInfo : eLogError,
|
||||||
|
"SSU2: Send exception: ", ec.message (), " to ", to);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSU2Server::Send (const uint8_t * header, size_t headerLen, const uint8_t * headerX, size_t headerXLen,
|
void SSU2Server::Send (const uint8_t * header, size_t headerLen, const uint8_t * headerX, size_t headerXLen,
|
||||||
@ -696,7 +699,10 @@ namespace transport
|
|||||||
if (!ec)
|
if (!ec)
|
||||||
i2p::transport::transports.UpdateSentBytes (headerLen + headerXLen + payloadLen);
|
i2p::transport::transports.UpdateSentBytes (headerLen + headerXLen + payloadLen);
|
||||||
else
|
else
|
||||||
LogPrint (eLogError, "SSU2: Send exception: ", ec.message (), " to ", to);
|
{
|
||||||
|
LogPrint (ec == boost::asio::error::would_block ? eLogInfo : eLogError,
|
||||||
|
"SSU2: Send exception: ", ec.message (), " to ", to);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SSU2Server::CreateSession (std::shared_ptr<const i2p::data::RouterInfo> router,
|
bool SSU2Server::CreateSession (std::shared_ptr<const i2p::data::RouterInfo> router,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user