From: Kern Sibbald Date: Mon, 1 Nov 2010 09:05:36 +0000 (+0100) Subject: Turn off debug code X-Git-Url: https://git.sur5r.net/?p=bacula%2Fbacula;a=commitdiff_plain;h=0c7b32c5e8542c8da83793f75ba3b0271a5cdd58 Turn off debug code --- diff --git a/bacula/src/qt-console/restore/restore.cpp b/bacula/src/qt-console/restore/restore.cpp index b3a5a480dc..bd67b09815 100644 --- a/bacula/src/qt-console/restore/restore.cpp +++ b/bacula/src/qt-console/restore/restore.cpp @@ -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 { diff --git a/bacula/src/qt-console/run/runcmd.cpp b/bacula/src/qt-console/run/runcmd.cpp index 6b21a4b46d..99d300986b 100644 --- a/bacula/src/qt-console/run/runcmd.cpp +++ b/bacula/src/qt-console/run/runcmd.cpp @@ -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);