Merge pull request #479 from despair86/master

win32 fix include / log stats to cerr by default (which is unbuffered)
pull/487/head
Jeff 6 years ago committed by GitHub
commit 5d96ed68fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -257,7 +257,7 @@ main(int argc, char *argv[])
llarp::metrics::PublisherScheduler publisherScheduler(
scheduler, metricsGuard.instance());
metricsGuard.instance()->addGlobalPublisher(
std::make_shared< llarp::metrics::StreamPublisher >(std::cout));
std::make_shared< llarp::metrics::StreamPublisher >(std::cerr));
publisherScheduler.setDefault(absl::Seconds(30));

@ -94,8 +94,6 @@ struct llarp_epoll_loop : public llarp_ev_loop
~llarp_epoll_loop()
{
if(epollfd != -1)
close(epollfd);
}
bool

@ -86,8 +86,6 @@ struct llarp_poll_loop : public llarp_ev_loop
~llarp_poll_loop()
{
if(upollfd)
upoll_destroy(upollfd);
}
bool

@ -153,7 +153,6 @@ namespace llarp
formatValue(stream, record.max(), maxSpec);
}
}
stream << " ]\n";
}
@ -183,8 +182,6 @@ namespace llarp
}
prev = gIt;
}
m_stream.flush();
}
}
} // namespace metrics

@ -4,6 +4,7 @@
#include <crypto/crypto.hpp>
#include <link/session.hpp>
#include <utp/inbound_message.hpp>
#include <deque>
#include <utp.h>

Loading…
Cancel
Save