summaryrefslogtreecommitdiff
path: root/controller
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2019-03-08 10:50:33 -0800
committerGrant Limberg <grant.limberg@zerotier.com>2019-03-08 10:50:33 -0800
commit993d850f697dbedd5c8967f7fab482af923df926 (patch)
tree7d984ddbc9571094d75f42e1f580e0334e561ce0 /controller
parentcda07b20a26c0ac774445da1334234aab342ce63 (diff)
downloadinfinitytier-993d850f697dbedd5c8967f7fab482af923df926.tar.gz
infinitytier-993d850f697dbedd5c8967f7fab482af923df926.zip
more logs
Diffstat (limited to 'controller')
-rw-r--r--controller/PostgreSQL.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index 9df0f440..a856e4af 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -608,6 +608,7 @@ void PostgreSQL::membersDbWatcher()
fprintf(stderr, "ERROR: %s membersDbWatcher should still be running! Exiting Controller.\n", _myAddressStr.c_str());
exit(9);
}
+ fprintf(stderr, "Exited membersDbWatcher\n");
}
void PostgreSQL::_membersWatcher_Postgres(PGconn *conn) {
@@ -675,9 +676,13 @@ void PostgreSQL::_membersWatcher_RabbitMQ() {
_memberChanged(oldConfig,newConfig,(this->_ready>=2));
}
} catch (std::runtime_error &e) {
- fprintf(stderr, "RABBITMQ ERROR: %s\n", e.what());
+ fprintf(stderr, "RABBITMQ ERROR member change: %s\n", e.what());
break;
- } catch(...) {}
+ } catch(std::exception &e ) {
+ fprintf(stderr, "RABBITMQ ERROR member change: %s\n", e.what());
+ } catch(...) {
+ fprintf(stderr, "RABBITMQ ERROR member change: unknown error\n");
+ }
}
}
@@ -706,6 +711,7 @@ void PostgreSQL::networksDbWatcher()
fprintf(stderr, "ERROR: %s networksDbWatcher should still be running! Exiting Controller.\n", _myAddressStr.c_str());
exit(8);
}
+ fprintf(stderr, "Exited membersDbWatcher\n");
}
void PostgreSQL::_networksWatcher_Postgres(PGconn *conn) {
@@ -773,7 +779,11 @@ void PostgreSQL::_networksWatcher_RabbitMQ() {
} catch (std::runtime_error &e) {
fprintf(stderr, "RABBITMQ ERROR: %s\n", e.what());
break;
- } catch(...) {}
+ } catch (std::exception &e) {
+ fprintf(stderr, "RABBITMQ ERROR network watcher: %s\n", e.what());
+ } catch(...) {
+ fprintf(stderr, "RABBITMQ ERROR network watcher: unknown error\n");
+ }
}
}