improved client_test's error reporting for web seeds

This commit is contained in:
Arvid Norberg 2007-03-07 00:10:47 +00:00
parent b17710df09
commit 0253004ab6
1 changed files with 4 additions and 0 deletions

View File

@ -813,6 +813,10 @@ int main(int ac, char* av[])
events.push_back(now + ": " + p->msg() + " (" events.push_back(now + ": " + p->msg() + " ("
+ boost::lexical_cast<std::string>(p->num_peers) + ")"); + boost::lexical_cast<std::string>(p->num_peers) + ")");
} }
else if (url_seed_alert* p = dynamic_cast<url_seed_alert*>(a.get()))
{
events.push_back(now + ": web seed '" + p->url + "': "+ p->msg());
}
else else
{ {
events.push_back(now + ": " + a->msg()); events.push_back(now + ": " + a->msg());