It says «resuest finished» instead of «request».

On Wednesday, April 30, 2014, Evgeny Safronov <notifications@github.com>
wrote:

> In example/download.cpp:
>
> >
> >  	void operator() (const ioremap::swarm::url_fetcher::response &reply, const std::string &data, const boost::system::error_code &error) const {
> > -		std::cout << "Request finished: " << reply.request().url().to_string() << " -> " << reply.url().to_string() << std::endl;
> > -		std::cout << "HTTP code: " << reply.code() << std::endl;
> > -		std::cout << "Error: " << error.message() << std::endl;
> > +		BH_LOG(log, ioremap::swarm::SWARM_LOG_INFO, "resuest finished")(
> > +			blackhole::attribute::make("request url", reply.request().url().to_string()),
> > +			blackhole::attribute::make("reply url", reply.url().to_string()),
> > +			blackhole::attribute::make("status", reply.code()),
> > +			blackhole::attribute::make("error", error.message())
> > +		);
>
> Now it looks more cleaner.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/reverbrain/swarm/pull/10/files#r12137407>
> .
>