summaryrefslogtreecommitdiffstats
path: root/lib/generators/ebook.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-23 18:03:15 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-23 18:03:15 +0100
commit112782d11837428c260211bb3afeb3263e479593 (patch)
tree3288c6972ab6d769ccbf8aade56ef6188c1c1761 /lib/generators/ebook.js
parentb88b4a0578c28af78a01a28591772f94d0dfe82e (diff)
downloadgitbook-112782d11837428c260211bb3afeb3263e479593.zip
gitbook-112782d11837428c260211bb3afeb3263e479593.tar.gz
gitbook-112782d11837428c260211bb3afeb3263e479593.tar.bz2
Add logs methods to Book object
Diffstat (limited to 'lib/generators/ebook.js')
-rw-r--r--lib/generators/ebook.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js
index b173c19..88159f3 100644
--- a/lib/generators/ebook.js
+++ b/lib/generators/ebook.js
@@ -31,6 +31,7 @@ Generator.prototype.prepareTemplates = function() {
Generator.prototype.writeSummary = function() {
var that = this;
+ that.book.logInfo("write SUMMARY.html");
return this._writeTemplate(this.templates["summary"], {}, path.join(this.options.output, "SUMMARY.html"));
};
@@ -97,6 +98,7 @@ Generator.prototype.finish = function() {
stringUtils.optionsToShellArgs(_options)
].join(" ");
+ that.book.logInfo("start conversion to", that.ebookFormat);
exec(command, function (error, stdout, stderr) {
if (error) {
if (error.code == 127) {