Skip to content

Commit

Permalink
logging body per option
Browse files Browse the repository at this point in the history
  • Loading branch information
dbo committed Nov 18, 2014
1 parent 81d8b60 commit a3a61d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ module.exports = function (grunt) {
}

grunt.log.ok(response.statusCode);
grunt.verbose.writeln(body);
if (grunt.option("logBody")) {
grunt.log.writeln(body);
}

if (dest) {
grunt.file.write(dest, body);
Expand Down

0 comments on commit a3a61d3

Please sign in to comment.