From 936410c7e6b8497ba647069d557d900d30fa4349 Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 7 Feb 2024 14:11:02 +0000 Subject: [PATCH] add debug --- SQLClientPool.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SQLClientPool.m b/SQLClientPool.m index e177ff5..1f5fffd 100644 --- a/SQLClientPool.m +++ b/SQLClientPool.m @@ -498,6 +498,7 @@ static Class cls = Nil; for (index = 0; index < _max; index++) { SQLClient *client = _items[index].c; + NSThread *owner = _items[index].o; NSUInteger rc = [client retainCount]; NSUInteger uc = _items[index].u; @@ -511,15 +512,15 @@ static Class cls = Nil; if (NSNotFound == uc) { tmp = [NSString stringWithFormat: @" Client '%@'" - @" provided exclusively (retained:%"PRIuPTR, - [client name], rc]; + @" provided to %@ exclusively (retained:%"PRIuPTR, + [client name], owner, rc]; } else { tmp = [NSString stringWithFormat: @" Client '%@'" - @" provided %"PRIuPTR + @" provided to %@ %"PRIuPTR @" time%s (retained:%"PRIuPTR, - [client name], uc, ((1 == uc) ? "" : "s"), rc]; + [client name], owner, uc, ((1 == uc) ? "" : "s"), rc]; } #if defined(GNUSTEP)