From e959908c517b70a932ca5506909717cdee50b89c Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Thu, 6 Dec 2018 13:19:36 -0800 Subject: log message --- controller/PostgreSQL.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'controller') diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index a745d79c..e9eb6041 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -1324,9 +1324,10 @@ void PostgreSQL::onlineNotificationThread() std::this_thread::sleep_for(std::chrono::milliseconds(250)); } - fprintf(stderr, "%s: Fell out of run loop in onlineNotificationThread", _myAddressStr.c_str()); + fprintf(stderr, "%s: Fell out of run loop in onlineNotificationThread\n", _myAddressStr.c_str()); PQfinish(conn); - if (_run != 0) { + if (_run == 1) { + fprintf(stderr, "ERROR: %s onlineNotificationThread should still be running! Exiting Controller.\n", _myAddressStr.c_str()); exit(6); } } -- cgit v1.2.3