diff options
| author | Grant Limberg <[email protected]> | 2021-09-02 13:48:08 -0700 |
|---|---|---|
| committer | Grant Limberg <[email protected]> | 2021-09-02 13:48:08 -0700 |
| commit | 16ff14bda7022b52bc3d7414ce22f36a23f0eac9 (patch) | |
| tree | 04b1a8fa96c761f33e7ec2bd3e4ede5f05a7b3a2 /controller/PostgreSQL.cpp | |
| parent | 57c1d96b71e1e4b0e487b948ee030256c40f3c6d (diff) | |
identify controller in pool stats
Diffstat (limited to 'controller/PostgreSQL.cpp')
| -rw-r--r-- | controller/PostgreSQL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index b26e9908..ac44894a 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -1393,8 +1393,8 @@ void PostgreSQL::onlineNotification_Postgres() _pool->unborrow(c); 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)); } |
