summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.cpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2022-06-22 10:01:07 -0700
committerGrant Limberg <[email protected]>2022-06-22 10:01:07 -0700
commit436f481a34f818127484f87bd31b5c4c3739e697 (patch)
treea08f1292a6f3da7d5f1efc919f61df5405a59556 /controller/PostgreSQL.cpp
parent9e8215b2131c4330b5bb72c1ee30ec3399eae0c4 (diff)
fix log line
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r--controller/PostgreSQL.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index db703ad4..b0fba46a 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -1678,6 +1678,7 @@ void PostgreSQL::onlineNotification_Redis()
std::string controllerId = std::string(_myAddress.toString(buf));
while (_run == 1) {
+ fprintf(stderr, "onlineNotification tick\n");
auto start = std::chrono::high_resolution_clock::now();
std::unordered_map< std::pair<uint64_t,uint64_t>,std::pair<int64_t,InetAddress>,_PairHasher > lastOnline;
@@ -1703,7 +1704,7 @@ void PostgreSQL::onlineNotification_Redis()
auto dur = std::chrono::duration_cast<std::chrono::milliseconds>(end - start);
auto total = dur.count();
- fprintf(stderr, "onlineNotification ran in %llu ms", total);
+ fprintf(stderr, "onlineNotification ran in %llu ms\n", total);
std::this_thread::sleep_for(std::chrono::seconds(1));
}