Verbose: Print these messages only in verbose mode

This commit is contained in:
2025-09-09 12:02:03 -04:00
parent 576d3ed7a5
commit 8413277847
2 changed files with 19 additions and 5 deletions
+12 -2
View File
@@ -3,6 +3,7 @@
#include <pthread.h>
#include <sched.h>
#include <boost/asio.hpp>
#include <opts.h>
#include <mind.h>
#include <componentThread.h>
#include <marionette/marionette.h>
@@ -39,7 +40,13 @@ const std::shared_ptr<ComponentThread> ComponentThread::getSelf(void)
void ComponentThread::main(ComponentThread& self)
{
std::cout << self.name << ":" << __func__ << ": Waiting for JOLT" <<"\n";
if (OptionParser::getOptions().verbose)
{
std::cout << self.name << ":" << __func__ << ": Waiting for JOLT"
<<"\n";
}
self.getIoService().run();
self.initializeTls();
@@ -304,7 +311,10 @@ void ComponentThread::pinToCpu(int cpuId)
}
pinnedCpuId = cpuId;
std::cout << name << ": Pinned to CPU " << cpuId << "\n";
if (OptionParser::getOptions().verbose)
{
std::cout << name << ": Pinned to CPU " << cpuId << "\n";
}
}
} // namespace smo