refactor(lib): improve client and h1 logs
This commit is contained in:
		| @@ -452,7 +452,11 @@ impl ConnectingTcpRemote { | ||||
|         loop { | ||||
|             if let Some(ref mut current) = self.current { | ||||
|                 match current.poll() { | ||||
|                     Ok(ok) => return Ok(ok), | ||||
|                     Ok(Async::Ready(tcp)) => { | ||||
|                         debug!("connected to {:?}", tcp.peer_addr().ok()); | ||||
|                         return Ok(Async::Ready(tcp)); | ||||
|                     }, | ||||
|                     Ok(Async::NotReady) => return Ok(Async::NotReady), | ||||
|                     Err(e) => { | ||||
|                         trace!("connect error {:?}", e); | ||||
|                         err = Some(e); | ||||
|   | ||||
| @@ -528,6 +528,7 @@ where C: Connect + Sync + 'static, | ||||
|                         .http2_only(is_h2) | ||||
|                         .handshake(io) | ||||
|                         .and_then(move |(tx, conn)| { | ||||
|                             trace!("handshake complete, spawning background dispatcher task"); | ||||
|                             let bg = executor.execute(conn.map_err(|e| { | ||||
|                                 debug!("client connection error: {}", e) | ||||
|                             })); | ||||
|   | ||||
| @@ -680,6 +680,7 @@ impl<T: Poolable> Future for Checkout<T> { | ||||
| impl<T> Drop for Checkout<T> { | ||||
|     fn drop(&mut self) { | ||||
|         if self.waiter.take().is_some() { | ||||
|             trace!("checkout dropped for {:?}", self.key); | ||||
|             if let Some(Ok(mut inner)) = self.pool.inner.as_ref().map(|i| i.lock()) { | ||||
|                 inner.clean_waiters(&self.key); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user