Skip to content

Commit

Permalink
Merge pull request #145 from jrcryer/log-levels
Browse files Browse the repository at this point in the history
Fixes #141 - make log level verbose for 'Create' logs
  • Loading branch information
vladikoff committed Dec 14, 2015
2 parents 64ccc43 + 9837e85 commit 5bb874d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module.exports = function(grunt) {
grunt.file.write(f.dest, src);

// Print a success message.
grunt.log.writeln('File ' + chalk.cyan(f.dest) + ' created.');
grunt.verbose.write('File ' + chalk.cyan(f.dest) + ' created.');
});
});

Expand Down
4 changes: 2 additions & 2 deletions tasks/lib/sourcemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ exports.init = function(grunt) {
var newSourceMap = generator.toJSON();
// Return a string for inline use or write the map.
if (this.options.sourceMapStyle === 'inline') {
grunt.log.writeln(
grunt.verbose.writeln(
'Source map for ' + chalk.cyan(this.files.dest) + ' inlined.'
);
return JSON.stringify(newSourceMap, null, '');
Expand All @@ -200,7 +200,7 @@ exports.init = function(grunt) {
this.dest,
JSON.stringify(newSourceMap, null, '')
);
grunt.log.writeln('Source map ' + chalk.cyan(this.dest) + ' created.');
grunt.verbose.writeln('Source map ' + chalk.cyan(this.dest) + ' created.');

};

Expand Down

0 comments on commit 5bb874d

Please sign in to comment.