moved block_downloading_alert, block_finished_alert and piece_finished_alert to debug level...yay performance

This commit is contained in:
Marcos Pinto 2007-10-04 00:07:26 +00:00
parent 5db5f423ce
commit 3841ddd3dc
4 changed files with 6 additions and 7 deletions

View File

@ -191,7 +191,7 @@ namespace libtorrent
const torrent_handle& h
, int piece_num
, const std::string& msg)
: torrent_alert(h, alert::warning, msg)
: torrent_alert(h, alert::debug, msg)
, piece_index(piece_num)
{ assert(piece_index >= 0);}
@ -208,7 +208,7 @@ namespace libtorrent
, int block_num
, int piece_num
, const std::string& msg)
: torrent_alert(h, alert::warning, msg)
: torrent_alert(h, alert::debug, msg)
, block_index(block_num)
, piece_index(piece_num)
{ assert(block_index >= 0 && piece_index >= 0);}
@ -228,7 +228,7 @@ namespace libtorrent
, int block_num
, int piece_num
, const std::string& msg)
: torrent_alert(h, alert::warning, msg)
: torrent_alert(h, alert::debug, msg)
, peer_speedmsg(speedmsg)
, block_index(block_num)
, piece_index(piece_num)

View File

@ -314,4 +314,3 @@ namespace libtorrent
}
}

View File

@ -1402,7 +1402,7 @@ namespace libtorrent
assert(p.start == j.offset);
piece_block block_finished(p.piece, p.start / t->block_size());
picker.mark_as_finished(block_finished, peer_info_struct());
if (t->alerts().should_post(alert::info))
if (t->alerts().should_post(alert::debug))
{
t->alerts().post_alert(block_finished_alert(t->get_handle(),
block_finished.block_index, block_finished.piece_index, "block finished"));
@ -1680,7 +1680,7 @@ namespace libtorrent
if (!t->picker().mark_as_downloading(block, peer_info_struct(), state))
return;
if (t->alerts().should_post(alert::info))
if (t->alerts().should_post(alert::debug))
{
t->alerts().post_alert(block_downloading_alert(t->get_handle(),
speedmsg, block.block_index, block.piece_index, "block downloading"));

View File

@ -825,7 +825,7 @@ namespace libtorrent
if (passed_hash_check)
{
if (m_ses.m_alerts.should_post(alert::info))
if (m_ses.m_alerts.should_post(alert::debug))
{
m_ses.m_alerts.post_alert(piece_finished_alert(get_handle()
, index, "piece finished"));