proxyserver: add stats endpoint for monitoring

This commit is contained in:
Sébastien Blin committed 2018-08-10 15:03:09 -04:00
1 parent c794781644
commit f54fcd768f
5 files changed
+87 -15

No files matched your search

+1 -1
View File
@@ -144,7 +144,7 @@ void cmd_loop(std::shared_ptr<DhtRunner>& dht, dht_params& params
#if OPENDHT_PROXY_SERVER
for (const auto& proxy : proxies) {
std::cout << "Stats for proxy on port " << proxy.first << std::endl;
std::cout << " " << proxy.second->getStats().toString() << std::endl;
std::cout << " " << proxy.second->stats().toString() << std::endl;
}
#endif
continue;