When receiving commands for particular BSC, log BSC id known at the time
when request was made, not the one which is part of the reply.
Change-Id: I6acdfddb9a1132f978f2b55c769559b0c29eb3e8
d.addCallback(collect,partial(handle_reply,ctx.process_reply,self.transport.write,self.factory.log))# treq's collect helper is handy to get all reply content at once using closure on ctx
d.addCallback(collect,partial(handle_reply,ctx.process_reply,params['bsc_id'],self.transport.write,self.factory.log))# treq's collect helper is handy to get all reply content at once using closure on ctx
d.addErrback(lambdae,bsc:self.factory.log.critical("HTTP POST error %s while trying to register BSC %s on %s"%(e,bsc,self.factory.location)),bsc)# handle HTTP errors
# Ensure that we run only limited number of requests in parallel: