mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 19:52:31 +00:00
* Changed tracker logging to use the new logging facilities.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1286 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -78,23 +78,6 @@
|
||||
|
||||
namespace core {
|
||||
|
||||
void
|
||||
receive_tracker_dump(const std::string& url, const char* data, size_t size) {
|
||||
const std::string& filename = rpc::call_command_string("log.tracker");
|
||||
|
||||
if (filename.empty())
|
||||
return;
|
||||
|
||||
std::fstream fstr(filename.c_str(), std::ios::out | std::ios::app);
|
||||
|
||||
if (!fstr.is_open())
|
||||
return;
|
||||
|
||||
fstr << "url: " << url << std::endl << "---" << std::endl;
|
||||
fstr.write(data, size);
|
||||
fstr << std::endl <<"---" << std::endl;
|
||||
}
|
||||
|
||||
void
|
||||
Manager::handshake_log(const sockaddr* sa, int msg, int err, const torrent::HashString* hash) {
|
||||
if (!rpc::call_command_value("log.handshake"))
|
||||
|
||||
Reference in New Issue
Block a user