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

Add "no-log" modus to binary #10

Closed
martinheidegger opened this issue Jul 16, 2019 · 2 comments
Closed

Add "no-log" modus to binary #10

martinheidegger opened this issue Jul 16, 2019 · 2 comments

Comments

@martinheidegger
Copy link
Contributor

martinheidegger commented Jul 16, 2019

When starting the dht as a node it will automatically log requests

https://github.com/hyperswarm/dht/blob/153d0fb498cc8ba106e64ba23612e28ee250a447/bin.js#L11-L21

this might fill up the hard disc and it should be possible to switch it of.

Note: I am not sure how to implement this best, else I would send a PR

@davidmarkclements
Copy link
Contributor

davidmarkclements commented Jul 16, 2019

to implement:

  • accept a flag on the command line (e.g. -q)
  • const quiet = process.argv.indexOf('-q') > -1
  • every log if (!quiet) console.log('blah')

@da2x
Copy link

da2x commented Mar 31, 2020

This was resolved in #28.

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

3 participants