aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYuchen Wu <[email protected]>2024-06-28 11:16:19 -0700
committerYuchen Wu <[email protected]>2024-07-12 11:24:29 -0700
commit5397e2bd56ff10dd6f9b85752b0beb22f3f85c71 (patch)
tree4eb40313c0d688b63951806b52c3a2ec2a8661f7
parent0035064d047d5e89ff10e96f8befa087a0b1b1a0 (diff)
downloadpingora-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--.bleep2
-rw-r--r--pingora-core/src/protocols/mod.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/.bleep b/.bleep
index 1fa3617..faa66f9 100644
--- a/.bleep
+++ b/.bleep
@@ -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
}
}