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

Debug logging #193

Closed
richardschneider opened this issue Jan 28, 2018 · 4 comments
Closed

Debug logging #193

richardschneider opened this issue Jan 28, 2018 · 4 comments

Comments

@richardschneider
Copy link
Contributor

If debug logging is enabled, via DEBUG environment variable, then all the js-ipfs tests fails. It appears that ipfsd-ctl does not like debug output.

> set DEBUG=*
> aegir test -t node -f test\http-api\interface\block

See the debug.txt

@dryajov
Copy link
Member

dryajov commented Jan 29, 2018

@richardschneider see - #195 (comment)

In esense, if we enable DEBUG=* or DEBUG=ipfs, etc - it will enable the daemon debug output, which will break our stdout/stderr parsing. We can use debugging, but we have to be careful to scope it correctly.

@richardschneider
Copy link
Contributor Author

With so many processes running in a test, I really need debug logging to figure out why the tests are failing.

ipfsd stdout/stderr parsing SHOULD work with debug logging.

@dryajov
Copy link
Member

dryajov commented Jan 29, 2018

I'd love to get that working, I just don't see how. Once you enable debugging, it will clog stderr and will have to workaround parsing leggit errors from conflicting log messages.

@daviddias daviddias added the status/ready Ready to be worked label Feb 12, 2018
@dryajov
Copy link
Member

dryajov commented Mar 29, 2018

This should be done with #195

@dryajov dryajov closed this as completed Mar 29, 2018
@ghost ghost removed the status/ready Ready to be worked label Mar 29, 2018
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