Added logging, currently shows failed torrent creations but does not

time out the log messages.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@307 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-25 22:05:15 +00:00
parent f66424f642
commit 9fe97ee490
17 changed files with 220 additions and 21 deletions
+3 -1
View File
@@ -72,7 +72,9 @@ WindowHttpQueue::cleanup_list() {
std::string
WindowHttpQueue::create_name(core::CurlGet* h) {
std::string n = h->get_url().substr(h->get_url().rfind('/', h->get_url().size() - std::min((size_t)10, h->get_url().size())));
size_t p = h->get_url().rfind('/', h->get_url().size() - std::min<int>(10, h->get_url().size()));
std::string n = p != std::string::npos ? h->get_url().substr(p) : h->get_url();
if (n.empty())
throw std::logic_error("WindowHttpQueue::create_name(...) made a bad string");