diff --git a/src/http/index.js b/src/http/index.js index 93a5ec172e..d15f1375b0 100644 --- a/src/http/index.js +++ b/src/http/index.js @@ -100,7 +100,11 @@ function HttpApi (repo, config, cliArgs) { routes: { cors: true } - } + }, + debug: process.env.DEBUG ? { + request: ['*'], + log: ['*'] + } : undefined }) this.server.app.ipfs = this.node