Commit ae6b5bd9 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

fix in systemd config meson

parent aa8aec94
......@@ -59,7 +59,9 @@ void CaSupDbMon::execute() {
CaSupDbFuncs f;
const std::vector<CuData> &active_srv = f.get_active_services(d->dbh);
printf("CaSupDbMon.execute: there are %ld services\n", active_srv.size());
int cnt = 0;
for(const CuData& s : active_srv) {
cnt++;
int id = -1;
s["id"].to<int>(id);
if(!s["err"].toBool()) {
......@@ -76,7 +78,7 @@ void CaSupDbMon::execute() {
cuprintf("%s", stat.c_str());
if(s.has("state", "RECOVER")) {
printf("CaSupDbMon.execute: has state RECOVER: calling get_srcs_for_srv_id\n");
printf("CaSupDbMon.execute: has state RECOVER: calling get_srcs_for_srv_id service %d / %d\n", cnt, active_srv.size());
srcs = f.get_srcs_for_srv_id(d->dbh, id);
/// print debug section
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment