diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-24 17:12:38 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-24 17:12:38 +0100 |
commit | 86e4a935e2956e0929b273aece04bea528d1cf4e (patch) | |
tree | cd4cdd8f56a3d85b9c0c79e178c11ad2041d8295 /lib/output/base.js | |
parent | 1fa952b9301dd48bc3d065f2a6e6ea7db3d9dd11 (diff) | |
download | gitbook-86e4a935e2956e0929b273aece04bea528d1cf4e.zip gitbook-86e4a935e2956e0929b273aece04bea528d1cf4e.tar.gz gitbook-86e4a935e2956e0929b273aece04bea528d1cf4e.tar.bz2 |
Improve logging
Diffstat (limited to 'lib/output/base.js')
-rw-r--r-- | lib/output/base.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/output/base.js b/lib/output/base.js index e0b58b4..fe792ee 100644 --- a/lib/output/base.js +++ b/lib/output/base.js @@ -61,7 +61,7 @@ Output.prototype.generate = function() { // Initialize the generation .then(function() { - that.log.debug.ln('preparing the generation'); + that.log.info.ln('preparing the generation'); return that.prepare(); }) @@ -106,6 +106,9 @@ Output.prototype.generate = function() { if (!that.book.isMultilingual()) return; return Promise.serie(that.book.books, function(subbook) { + that.log.info.ln(''); + that.log.info.ln('start generation of language "' + path.relative(that.book.root, subbook.root) + '"'); + var out = that.onLanguageBook(subbook); return out.generate(); }); @@ -118,6 +121,7 @@ Output.prototype.generate = function() { }) .then(function() { + if (!that.book.isLanguageBook()) that.log.info.ln(''); that.log.info.ln('generation finished with success!'); }); }; |