logging fixes

This commit is contained in:
Arvid Norberg 2011-05-01 08:58:45 +00:00
parent eaea22be71
commit 449733d518
2 changed files with 4 additions and 3 deletions

View File

@ -843,7 +843,7 @@ namespace libtorrent
else bitmask += '0';
}
}
peer_log("<<< EXTENSION_BITS [ %s ]", bitmask.c_str());
peer_log(">>> EXTENSION_BITS [ %s ]", bitmask.c_str());
#endif
i.begin += 8;
@ -861,7 +861,7 @@ namespace libtorrent
TORRENT_ASSERT(i.begin == i.end);
#ifdef TORRENT_VERBOSE_LOGGING
peer_log("==> HANDSHAKE");
peer_log("==> HANDSHAKE [ ih: %s ]", to_hex(ih.to_string()).c_str());
#endif
setup_send();
}

View File

@ -35,6 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <vector>
#include <boost/limits.hpp>
#include <boost/bind.hpp>
#include <stdarg.h> // for va_start, va_end
#include "libtorrent/peer_connection.hpp"
#include "libtorrent/identify_client.hpp"
@ -4646,7 +4647,7 @@ namespace libtorrent
{
#ifdef TORRENT_VERBOSE_LOGGING
peer_log("<<< CANNOT READ [ quota: %d ignore: %s "
"can-write-to-disk: %d queue-limit: %d disconnecting: %s ]"
"can-write-to-disk: %s queue-limit: %d disconnecting: %s ]"
, m_quota[download_channel]
, (m_ignore_bandwidth_limits?"yes":"no")
, (m_ses.can_write_to_disk()?"yes":"no")