mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
Include file paths in CLI log output
This commit is contained in:
@@ -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')
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user