From dc58424b6ab35f0b2872bbf9a7d11f9e38f02a19 Mon Sep 17 00:00:00 2001 From: Sandy Date: Mon, 20 Mar 2023 16:26:53 -0500 Subject: [PATCH] Add to the debug logs whether the parent request closure Signed-off-by: Sandy --- close.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/close.go b/close.go index d930ea0..e06c05e 100644 --- a/close.go +++ b/close.go @@ -32,7 +32,7 @@ func (p *Pool[_, _]) closureRequestListener() { waiting: // Block until a request comes in forced := <-p.closureRequest - p.log.Debug("Got a request to close", "forced", forced) + p.log.Debug("Got a request to close", "forced", forced, "parent_requested", p.connectorRequestedClosure) // Refuse to close if it had already been done. if p.IsClosed() { p.log.Warn("Pool is already closed")