Open haasn opened 7 years ago
I can't get the NS_LOG_INFO calls in Bitcoin-Simulator to work at all.
I've tried a number of different settings for NS_LOG:
NS_LOG
*=level_all|prefix_func|prefix_time
BitcoinNode=level_all
MyMpiTest=level_all
MyMpiTest
I've also tried uncommenting all of the LogComponentEnable calls in scratch/bitcoin-test.cc, to no avail.
LogComponentEnable
scratch/bitcoin-test.cc
No matter what I try doing, I get absolutely no change in output. I am running like this:
./waf --run "bitcoin-test --noBlocks=20 --nodes=60"
And I have built ns3 as follows:
CXXFLAGS="-std=c++11" ./waf configure --build-profile=optimized --out=build/optimized --enable-mpi --enable-tests
What am I doing wrong? It seems like the only way to actually get realtime stats out of Bitcoin-Simulator is to replace the NS_LOG_INFO calls by std::cout, which works fine but is annoying to do systematically.
NS_LOG_INFO
std::cout
You shall change the profile to debug. ./waf -d=debug
I can't get the NS_LOG_INFO calls in Bitcoin-Simulator to work at all.
I've tried a number of different settings for
NS_LOG
:*=level_all|prefix_func|prefix_time
BitcoinNode=level_all
MyMpiTest=level_all
MyMpiTest
etc.I've also tried uncommenting all of the
LogComponentEnable
calls inscratch/bitcoin-test.cc
, to no avail.No matter what I try doing, I get absolutely no change in output. I am running like this:
And I have built ns3 as follows:
What am I doing wrong? It seems like the only way to actually get realtime stats out of Bitcoin-Simulator is to replace the
NS_LOG_INFO
calls bystd::cout
, which works fine but is annoying to do systematically.