diff --git a/Buffer/main.cpp b/Buffer/main.cpp index 2dd19ccb..b9b080bb 100644 --- a/Buffer/main.cpp +++ b/Buffer/main.cpp @@ -255,6 +255,7 @@ namespace Buffer{ } if (StatsSocket.connected()){ StatsSocket.write(Storage.toStyledString()); + std::cout << "Wrote stats to controller!" << std::endl; Storage["log"].clear(); } } diff --git a/DDV_Controller/main.cpp b/DDV_Controller/main.cpp index 70c922f3..bbde88db 100644 --- a/DDV_Controller/main.cpp +++ b/DDV_Controller/main.cpp @@ -450,6 +450,7 @@ int main(int argc, char ** argv){ if (it->Received() != ""){ size_t newlines = it->Received().find("\n\n"); while (newlines != std::string::npos){ + Log("STAT", "Received stats from a buffer"); if (!JsonParse.parse(it->Received().substr(0, newlines), Request, false)){ if (Request.isMember("totals") && Request["totals"].isMember("buffer")){ std::string thisbuffer = Request["totals"]["buffer"].asString();