Skip to content

Commit

Permalink
Improve debug http response
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Feb 12, 2020
1 parent be542a3 commit 5d9c61d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Expand Up @@ -235,7 +235,9 @@ exports.read = function (response, encoding) {
return resolve(result);
}

debugBody(`Buffer <ignored>, Buffer length: ${buff.length}`);
if (debugBody.enabled) {
debugBody(buff.toString());
}
resolve(buff);
};

Expand Down

0 comments on commit 5d9c61d

Please sign in to comment.