arthurgervais / Bitcoin-Simulator

Bitcoin and Blockchain Simulator
http://arthurgervais.github.io/Bitcoin-Simulator/
186 stars 75 forks source link

NS_LOG_INFO calls don't output anything, for some reason #3

Open haasn opened 7 years ago

haasn commented 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:

I've also tried uncommenting all of the LogComponentEnable calls in scratch/bitcoin-test.cc, to no avail.

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.

wordhardqi commented 7 years ago

You shall change the profile to debug. ./waf -d=debug