]> git.sur5r.net Git - bacula/bacula/commitdiff
Turn off debug code
authorKern Sibbald <kern@sibbald.com>
Mon, 1 Nov 2010 09:05:36 +0000 (10:05 +0100)
committerKern Sibbald <kern@sibbald.com>
Mon, 1 Nov 2010 09:06:22 +0000 (10:06 +0100)
bacula/src/qt-console/restore/restore.cpp
bacula/src/qt-console/run/runcmd.cpp

index b3a5a480dc5f9f4d56ed5685b1970f453ca96451..bd67b09815f14fa10c4c6e83db6ab127b725c581 100644 (file)
@@ -253,7 +253,9 @@ void restorePage::addDirectory(QString &newdirr)
             item->setText(0, newdir.toUtf8().data());
             item->setIcon(0,QIcon(QString::fromUtf8(":images/folder.png")));
             directoryWidget->expandItem(parent);
-            Pmsg1(dbglvl, "%s\n", newdir.toUtf8().data());
+            if (mainWin->m_miscDebug) {
+               Pmsg1(dbglvl, "%s\n", newdir.toUtf8().data());
+            }
          } else {
             ok = false;
             if (mainWin->m_miscDebug) {
@@ -343,7 +345,9 @@ void restorePage::fileDoubleClicked(QTreeWidgetItem *item, int column)
    if (item->text(1).endsWith("/")) {
       QString fullpath = m_cwd + item->text(1);
       QTreeWidgetItem *item = m_dirPaths.value(fullpath);
-      Pmsg1(dbglvl, "%s\n", fullpath.toUtf8().data());
+      if (mainWin->m_miscDebug) {
+         Pmsg1(dbglvl, "%s\n", fullpath.toUtf8().data());
+      }
       if (item) {
          directoryWidget->setCurrentItem(item);
       } else {
index 6b21a4b46da3b5fe45ac6b71533be9f1fb029840..99d300986b1a1f09f9eb03830c75b4cc6446c1fb 100644 (file)
@@ -86,8 +86,8 @@ void runCmdPage::fill()
    foreach(item, items) {
       rx.indexIn(item);
       val = rx.cap(1);
-      Dmsg1(000, "Item=%s\n", item.toUtf8().data());
-      Dmsg1(000, "Value=%s\n", val.toUtf8().data());
+      Dmsg1(100, "Item=%s\n", item.toUtf8().data());
+      Dmsg1(100, "Value=%s\n", val.toUtf8().data());
 
       if (item.startsWith("Title:")) {
          run->setText(val);