diff --git a/bin/mbcheck b/bin/mbcheck index a987264..67b3209 100755 --- a/bin/mbcheck +++ b/bin/mbcheck @@ -48,8 +48,7 @@ Step( mbtiles.metadata('bounds', this.parallel()); }, function(err, name, type, description, version, format, bounds) { - console.warn(''); - console.warn(' Metadata'); + console.warn('Metadata'); utils.table([ ['name', name], ['type', type], @@ -156,4 +155,4 @@ Step( }.bind(this) ); } -); \ No newline at end of file +); diff --git a/bin/mbcompact b/bin/mbcompact index 1add2d7..5ce64b1 100755 --- a/bin/mbcompact +++ b/bin/mbcompact @@ -115,7 +115,8 @@ Step( .finalize(); }); }; - console.log('00 -------------- 50 -------------- 100'); + console.warn('00 -------------- 50 -------------- 100'); + sys.print(''); doit(1000, 0); }, function(err) { @@ -135,8 +136,8 @@ Step( function(err) { if (err) throw err; sys.print('\n'); - console.log('Compact hits %s.', hits); - console.log('Compaction complete.'); + console.warn('Compact hits %s.', hits); + console.warn('Compaction complete.'); } ); diff --git a/lib/utils.js b/lib/utils.js index 6024a8a..1f0387c 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -12,7 +12,7 @@ utils.table = function(fields) { }); fields.forEach(function(field) { console.warn( - ' ' + field.map(function(val, i) { + field.map(function(val, i) { if (i >= lengths.length - 1) return val; return val + Array(lengths[i] - val.toString().length + 1).join(' '); }).join(' ')