Output all CLI log messages in the same way

This commit is contained in:
Richard Gibson 2017-05-25 09:57:30 -04:00
parent e0f3656629
commit 4cfd18e25f

View File

@ -46,7 +46,7 @@ var options = {
width: width,
outputSuffix: system.args[9]
}
var log = logger(options.verbose)
// var log = logger(options.verbose)
options.sequenceConfig.useMaxWidth = false
page.content = [
@ -109,12 +109,13 @@ files.forEach(function (file) {
, serialize.serializeToString(oDOM) + '\n'
, 'w'
)
log('saved svg: ' + filename + '.svg')
console.log('saved svg: ' + filename + '.svg')
}
})
window.phantom.exit()
/*
function logger (_verbose) {
var verbose = _verbose
@ -130,6 +131,7 @@ function logger (_verbose) {
}
}
}
*/
function resolveSVGElement (element) {
var prefix = {