diff --git a/lib/phantomscript.js b/lib/phantomscript.js index 43a21e859..2a24e150a 100644 --- a/lib/phantomscript.js +++ b/lib/phantomscript.js @@ -75,7 +75,7 @@ files.forEach(function (file) { var oDOM 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 // 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') - log('saved png: ' + filename + '.png') + log('saved png: ' + outputPath + '.png') } if (options.svg) { @@ -109,7 +109,7 @@ files.forEach(function (file) { , serialize.serializeToString(oDOM) + '\n' , 'w' ) - log('saved svg: ' + filename + '.svg') + log('saved svg: ' + outputPath + '.svg') } })