Verbose: Print these messages only in verbose mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user