Include file paths in CLI log output

This commit is contained in:
Richard Gibson
2017-05-25 10:14:11 -04:00
parent ef25bfee14
commit de2db39161

View File

@@ -75,7 +75,7 @@ files.forEach(function (file) {
var oDOM var oDOM
var svgContent var svgContent
log('ready to execute png: ' + filename + '.png ') log('ready to execute: ' + file)
// this JS is executed in this statement is sandboxed, even though it doesn't // this JS is executed in this statement is sandboxed, even though it doesn't
// look like it. we need to serialize then unserialize the svgContent that's // look like it. we need to serialize then unserialize the svgContent that's
@@ -100,7 +100,7 @@ files.forEach(function (file) {
} }
page.render(outputPath + '.png') page.render(outputPath + '.png')
log('saved png: ' + filename + '.png') log('saved png: ' + outputPath + '.png')
} }
if (options.svg) { if (options.svg) {
@@ -109,7 +109,7 @@ files.forEach(function (file) {
, serialize.serializeToString(oDOM) + '\n' , serialize.serializeToString(oDOM) + '\n'
, 'w' , 'w'
) )
log('saved svg: ' + filename + '.svg') log('saved svg: ' + outputPath + '.svg')
} }
}) })