Description: remove a few debug statements run for us
 and do something with some…
Author: mirabilos <tg@debian.org>
Forwarded: no, depends on debian/patches/experiments/our-message-handler.diff

--- a/libmscore/rendermidi.cpp
+++ b/libmscore/rendermidi.cpp
@@ -2543,7 +2543,7 @@ void MidiRenderer::renderChunk(const Chu
                   // since sometimes the synth state is not init
                   method = 1;
                   cc = 2;
-                  qWarning("Had to fall back to defaults to render measure");
+                  qDebug("Had to fall back to defaults to render measure");
                   }
             }
 
--- a/libmscore/repeatlist.cpp
+++ b/libmscore/repeatlist.cpp
@@ -393,7 +393,7 @@ void RepeatList::unwind()
                         sectionStartMeasureBase = 0; // reset to NULL to indicate that don't know starting Measure of next section after starting new section
                         sectionEndMeasureBase   = 0;
                         }
-                  else {
+                  else if (sectionStartMeasureBase || sectionEndMeasureBase) {
                         qDebug( "Will not unroll a section that doesn't start or end with an actual measure. sectionStartMeasureBase = %p, sectionEndMeasureBase = %p",
                                     sectionStartMeasureBase, sectionEndMeasureBase);
                         }
--- a/libmscore/xmlreader.cpp
+++ b/libmscore/xmlreader.cpp
@@ -210,6 +210,8 @@ void XmlReader::unknown()
       {
       if (QXmlStreamReader::error())
             qDebug("%s ", qPrintable(errorString()));
+      else
+            qDebug("unknown tag ");
       if (!docName.isEmpty())
             qDebug("tag in <%s> line %lld col %lld: %s",
                qPrintable(docName), lineNumber(), columnNumber(), name().toUtf8().data());
@@ -506,7 +508,6 @@ int XmlReader::spannerId(const Spanner*
 
 Tid XmlReader::addUserTextStyle(const QString& name)
       {
-      qDebug("%s", qPrintable(name));
       Tid id = Tid::TEXT_STYLES;
       if (userTextStyles.size() == 0)
             id = Tid::USER1;
