Jelajahi Sumber

generateImages: clean up logs

sschmid 5 tahun lalu
induk
melakukan
c92356e860
1 mengubah file dengan 3 tambahan dan 4 penghapusan
  1. 3 4
      test/Util/generateImages_browserless.js

+ 3 - 4
test/Util/generateImages_browserless.js

@@ -23,7 +23,7 @@ function sleep (ms) {
 }
 
 async function init () {
-    console.log('[OSMD.generate] init')
+    console.log('[OSMD.generateImages] init')
 
     let [osmdBuildDir, sampleDir, imageDir, pageWidth, pageHeight, filterRegex, mode, debugSleepTimeString] = process.argv.slice(2, 10)
     if (!osmdBuildDir || !sampleDir || !imageDir) {
@@ -39,7 +39,7 @@ async function init () {
     const DEBUG = mode.startsWith('--debug')
     // const debugSleepTime = Number.parseInt(process.env.GENERATE_DEBUG_SLEEP_TIME) || 0; // 5000 works for me [sschmidTU]
     if (DEBUG) {
-        console.log(' (note that --debug slows down the script by about 0.3s per file, through logging)')
+        // console.log(' (note that --debug slows down the script by about 0.3s per file, through logging)')
         const debugSleepTimeMs = Number.parseInt(debugSleepTimeString)
         if (debugSleepTimeMs > 0) {
             console.log('debug sleep time: ' + debugSleepTimeString)
@@ -190,7 +190,6 @@ async function init () {
     // osmdInstance.EngravingRules.DistanceBetweenVerticalSystemLines = 0.15; // 0.35 is default
     // for more options check EngravingRules.ts (though not all of these are meant and fully supported to be changed at will)
 
-    // await sleep(5000)
     if (DEBUG) {
         osmdInstance.setLogLevel('debug')
         // console.log(`osmd PageFormat: ${osmdInstance.EngravingRules.PageFormat.width}x${osmdInstance.EngravingRules.PageFormat.height}`)
@@ -279,7 +278,7 @@ async function init () {
         // }) // end read file
     }
 
-    console.log('[OSMD.generate_browserless] exit')
+    console.log('[OSMD.generateImages_browserless] exit')
 }
 
 function debug (msg, debugEnabled) {