mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-02 04:50:38 +00:00
[proxy] update noisy error logging (#12438)
Health checks for pg-sni-router open a TCP connection and immediately close it again. This is noisy. We will filter out any EOF errors on the first message. "acquired permit" debug log is incorrect since it logs when we timedout as well. This fixes the debug log.
This commit is contained in:
@@ -213,7 +213,12 @@ impl<K: Hash + Eq + Clone> ApiLocks<K> {
|
||||
self.metrics
|
||||
.semaphore_acquire_seconds
|
||||
.observe(now.elapsed().as_secs_f64());
|
||||
debug!("acquired permit {:?}", now.elapsed().as_secs_f64());
|
||||
|
||||
if permit.is_ok() {
|
||||
debug!(elapsed = ?now.elapsed(), "acquired permit");
|
||||
} else {
|
||||
debug!(elapsed = ?now.elapsed(), "timed out acquiring permit");
|
||||
}
|
||||
Ok(WakeComputePermit { permit: permit? })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user