diff options
author | Yuchen Wu <[email protected]> | 2024-06-28 11:16:19 -0700 |
---|---|---|
committer | Yuchen Wu <[email protected]> | 2024-07-12 11:24:29 -0700 |
commit | 5397e2bd56ff10dd6f9b85752b0beb22f3f85c71 (patch) | |
tree | 4eb40313c0d688b63951806b52c3a2ec2a8661f7 | |
parent | 0035064d047d5e89ff10e96f8befa087a0b1b1a0 (diff) | |
download | pingora-5397e2bd56ff10dd6f9b85752b0beb22f3f85c71.tar.gz pingora-5397e2bd56ff10dd6f9b85752b0beb22f3f85c71.zip |
Change from debug to display when socket mismatch happens
The display format contains more useful info.
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-core/src/protocols/mod.rs | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -1 +1 @@ -c8b3190a76c824a4f6aa6631f65d49e67f3aaf7d
\ No newline at end of file +0c2538fbdad830fa4ef24d373516f6a1ed138719
\ No newline at end of file diff --git a/pingora-core/src/protocols/mod.rs b/pingora-core/src/protocols/mod.rs index 2c25e89..0699ac5 100644 --- a/pingora-core/src/protocols/mod.rs +++ b/pingora-core/src/protocols/mod.rs @@ -231,10 +231,10 @@ impl ConnFdReusable for Path { Ok(peer) => match UnixAddr::new(self) { Ok(addr) => { if addr == peer { - debug!("Unix FD to: {peer:?} is reusable"); + debug!("Unix FD to: {peer} is reusable"); true } else { - error!("Crit: unix FD mismatch: fd: {fd:?}, peer: {peer:?}, addr: {addr}",); + error!("Crit: unix FD mismatch: fd: {fd:?}, peer: {peer}, addr: {addr}",); false } } @@ -258,10 +258,10 @@ impl ConnFdReusable for InetSocketAddr { Ok(peer) => { let addr = SockaddrStorage::from(*self); if addr == peer { - debug!("Inet FD to: {peer:?} is reusable"); + debug!("Inet FD to: {addr} is reusable"); true } else { - error!("Crit: FD mismatch: fd: {fd:?}, addr: {addr:?}, peer: {peer:?}",); + error!("Crit: FD mismatch: fd: {fd:?}, addr: {addr}, peer: {peer}",); false } } |