improve logs

This commit is contained in:
Σrebe - Romain GERARD 2024-01-07 21:47:29 +01:00
parent b9bf0f005d
commit ade9a19315
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4

View file

@ -335,10 +335,7 @@ async fn server_upgrade(server_config: Arc<WsServerConfig>, mut req: Request<Inc
}; };
let (remote_addr, local_rx, local_tx) = tunnel; let (remote_addr, local_rx, local_tx) = tunnel;
info!( info!("connected to {:?} {}:{}", req_protocol, remote_addr.host, remote_addr.port);
"connected to {:?} {:?} {:?}",
remote_addr.protocol, remote_addr.host, remote_addr.port
);
let (mut response, fut) = match fastwebsockets::upgrade::upgrade(&mut req) { let (mut response, fut) = match fastwebsockets::upgrade::upgrade(&mut req) {
Ok(ret) => ret, Ok(ret) => ret,
Err(err) => { Err(err) => {