Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

chore: add debug logging to http server #1403

Merged
merged 1 commit into from
Jun 21, 2018
Merged

chore: add debug logging to http server #1403

merged 1 commit into from
Jun 21, 2018

Conversation

achingbrain
Copy link
Member

Sets up Hapi's debug logging when DEBUG env var is present.

This will enable developers to see what is happening inside
the daemon when ipfs/js-ipfsd-ctl#270 is merged instead of just
getting error messages like 'Please retrace your steps'.

It lets you do this sort of thing:

$ DEBUG=ipfsd-ctl:daemon:* npm test

...and see Hapi's request/server logs in the output.

Sets up Hapi's debug logging when DEBUG env var is present.

This will enable developers to see what is happening inside
the daemon when ipfs/js-ipfsd-ctl#270 is merged instead of just
getting error messages like 'Please retrace your steps'.

It lets you do this sort of thing:

```
$ DEBUG=ipfsd-ctl:daemon:* npm test
```

...and see Hapi's request/server logs in the output.
@ghost ghost assigned achingbrain Jun 20, 2018
@ghost ghost added the status/in-progress In progress label Jun 20, 2018
@alanshaw
Copy link
Member

@wraithgar, would you mind looking into why we're sometimes getting failures on the bitswap tests: https://ci.ipfs.team/blue/organizations/jenkins/IPFS%2Fjs-ipfs/detail/PR-1403/1/pipeline/22#step-212-log-213

@wraithgar
Copy link
Contributor

wraithgar commented Jun 20, 2018

Looks like it's picking up a few partners in the short time the tests are running. I'll make a PR amending that test to check for everything but the partners count.

ETA: PR here #1404

@alanshaw alanshaw merged commit 8bbf7e7 into master Jun 21, 2018
@ghost ghost removed the status/in-progress In progress label Jun 21, 2018
@alanshaw alanshaw deleted the add-server-debug branch June 21, 2018 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants