From fd2906767361f901cbe0a7a529e933044c1cad7d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 14 Jun 2023 11:04:17 +0200 Subject: [SERVER] Threadpool: Add active thread count to error message --- src/server/threadpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/threadpool.c b/src/server/threadpool.c index cf39d5c..a21bd0d 100644 --- a/src/server/threadpool.c +++ b/src/server/threadpool.c @@ -89,7 +89,7 @@ bool threadpool_run(void *(*startRoutine)(void *), void *arg, const char *name) return false; } if ( 0 != thread_create( &(entry->thread), &threadAttrs, threadpool_worker, (void*)entry ) ) { - logadd( LOG_WARNING, "Could not create new thread for thread pool\n" ); + logadd( LOG_WARNING, "Could not create new thread for thread pool (%d active)\n", (int)activeThreads ); signal_close( entry->signal ); free( entry ); return false; -- cgit v1.2.3-55-g7522