]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/book_snippets.py
Loglevels in our python scripts (lilypond-book, musicxml2ly, convert-ly)
[lilypond.git] / python / book_snippets.py
index f128ac16fff8801f4c6f2774b37e160e543110d5..80584bdbca95762f30d4b8187633b25656245aa4 100644 (file)
@@ -15,6 +15,7 @@ import copy
 progress = ly.progress
 warning = ly.warning
 error = ly.error
+debug = ly.debug_output
 
 
 
@@ -717,8 +718,7 @@ printing diff against existing file." % filename)
     def filter_pipe (self, input, cmd):
         """Pass input through cmd, and return the result."""
 
-        if self.global_options.verbose:
-            progress (_ ("Running through filter `%s'\n") % cmd)
+        debug (_ ("Running through filter `%s'") % cmd, True)
 
         # TODO: Use Popen once we resolve the problem with msvcrt in Windows:
         (stdin, stdout, stderr) = os.popen3 (cmd)
@@ -744,8 +744,7 @@ printing diff against existing file." % filename)
             ly.stderr_write (stderr.read ())
             exit (status)
 
-        if self.global_options.verbose:
-            progress ('\n')
+        debug ('\n')
 
         return output