Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
haasn opened this issue May 14, 2017 · 1 comment
Open

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

haasn opened this issue May 14, 2017 · 1 comment

Comments

@haasn
Copy link

haasn commented May 14, 2017

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 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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants