Răsfoiți Sursa

identify controller in pool stats

Grant Limberg 3 ani în urmă
părinte
comite
16ff14bda7
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      controller/PostgreSQL.cpp

+ 2 - 2
controller/PostgreSQL.cpp

@@ -1393,8 +1393,8 @@ void PostgreSQL::onlineNotification_Postgres()
 		_pool->unborrow(c);
 		_pool->unborrow(c);
 
 
 		ConnectionPoolStats stats = _pool->get_stats();
 		ConnectionPoolStats stats = _pool->get_stats();
-		fprintf(stderr, "pool stats: in use size: %llu, available size: %llu, total: %llu\n",
-			stats.borrowed_size, stats.pool_size, (stats.borrowed_size + stats.pool_size));
+		fprintf(stderr, "%s pool stats: in use size: %llu, available size: %llu, total: %llu\n",
+			_myAddressStr.c_str(), stats.borrowed_size, stats.pool_size, (stats.borrowed_size + stats.pool_size));
 
 
 		std::this_thread::sleep_for(std::chrono::seconds(10));
 		std::this_thread::sleep_for(std::chrono::seconds(10));
 	}
 	}