cli cerr/cout flush

Write less extraneous information to stdout,
and ensure flush() at opportune times
This commit is contained in:
Michael Davidsaver committed 2026-06-28 20:05:45 -07:00
1 parent 086501a1b0
commit 090bf5ff97
6 files changed
+12 -8

No files matched your search

+2 -1
View File
@@ -108,7 +108,7 @@ int main(int argc, char *argv[])
auto ctxt(client::Context::fromEnv());
if(verbose)
std::cout<<"Effective config\n"<<ctxt.config();
std::cerr<<"Effective config\n"<<ctxt.config();
// space for every subscription and one more for SigInt
MPMCFIFO<std::shared_ptr<client::Subscription>> workqueue(argc-optind+1);
@@ -157,6 +157,7 @@ int main(int argc, char *argv[])
std::cout<<update.format()
.format(format)
.arrayLimit(arrLimit);
std::cout.flush();
}catch(client::Finished& conn) {
log_info_printf(app, "%s POP Finished\n", name.c_str());