Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add dynamic logging to js bootstrapper (#152)
To allow setting the log level dynamically, add a `/api/v0/nodejs/debug` endpoint to the RPC server and curl to the docker image. Set the log level with: ``` curl http://127.0.0.1:8899/api/v0/nodejs/log?namespace=libp2p* ``` Disable logging entirely with: ``` curl http://127.0.0.1:8899/api/v0/nodejs/log?namespace= ``` Also refactors the RPC server handlers into a Record to remove the growing if/else if/else if.
- Loading branch information