Skip to content

Commit

Permalink
Add to the debug logs whether the parent request closure
Browse files Browse the repository at this point in the history
Signed-off-by: Sandy <[email protected]>
  • Loading branch information
thecsw committed Mar 20, 2023
1 parent fa2a300 commit dc58424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion close.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit dc58424

Please sign in to comment.