mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Output all CLI log messages in the same way
This commit is contained in:
parent
e0f3656629
commit
4cfd18e25f
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user