summaryrefslogtreecommitdiffstats
path: root/lib/utils
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/page.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js
index f422d4c..f771f72 100644
--- a/lib/utils/page.js
+++ b/lib/utils/page.js
@@ -218,7 +218,7 @@ function normalizeHtml(src, options) {
function convertImages(images, options) {
if (!options.convertImages) return Q();
- options.book.log.info.ln("convert ", images.length, "images to png");
+ options.book.log.debug.ln("convert ", images.length, "images to png");
return _.reduce(images, function(prev, image) {
var imgin = path.resolve(options.book.options.output, image.source);
@@ -228,8 +228,8 @@ function convertImages(images, options) {
// Write image if need to be download
.then(function() {
if (!image.origin) return;
- options.book.log.info("download image", image.origin);
- return options.book.log.info.promise(fs.writeStream(imgin, request(image.origin)));
+ options.book.log.debug("download image", image.origin, "...");
+ return options.book.log.debug.promise(fs.writeStream(imgin, request(image.origin)));
})
// Write svg if content
@@ -247,7 +247,7 @@ function convertImages(images, options) {
});
}, Q())
.then(function() {
- options.book.log.info.ok(images.length+" images converted with success");
+ options.book.log.debug.ok(images.length+" images converted with success");
});
};