verbose logging improvement
This commit is contained in:
parent
beb9dbfc03
commit
a7af4d806b
|
@ -3224,12 +3224,24 @@ namespace libtorrent
|
||||||
if (!can_write())
|
if (!can_write())
|
||||||
{
|
{
|
||||||
#ifdef TORRENT_VERBOSE_LOGGING
|
#ifdef TORRENT_VERBOSE_LOGGING
|
||||||
(*m_logger) << time_now_string() << " *** CANNOT WRITE ["
|
if (m_send_buffer.empty())
|
||||||
" quota: " << m_bandwidth_limit[download_channel].quota_left() <<
|
{
|
||||||
" ignore: " << (m_ignore_bandwidth_limits?"yes":"no") <<
|
(*m_logger) << time_now_string() << " *** SEND BUFFER DEPLETED ["
|
||||||
" buf: " << m_send_buffer.size() <<
|
" quota: " << m_bandwidth_limit[download_channel].quota_left() <<
|
||||||
" connecting: " << (m_connecting?"yes":"no") <<
|
" ignore: " << (m_ignore_bandwidth_limits?"yes":"no") <<
|
||||||
" ]\n";
|
" buf: " << m_send_buffer.size() <<
|
||||||
|
" connecting: " << (m_connecting?"yes":"no") <<
|
||||||
|
" ]\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
(*m_logger) << time_now_string() << " *** CANNOT WRITE ["
|
||||||
|
" quota: " << m_bandwidth_limit[download_channel].quota_left() <<
|
||||||
|
" ignore: " << (m_ignore_bandwidth_limits?"yes":"no") <<
|
||||||
|
" buf: " << m_send_buffer.size() <<
|
||||||
|
" connecting: " << (m_connecting?"yes":"no") <<
|
||||||
|
" ]\n";
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue