From cf5b3e0b33032c3ef7eaefdd642060d3dee35d83 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 1 Nov 2010 10:05:36 +0100 Subject: [PATCH] Turn off debug code --- bacula/src/qt-console/restore/restore.cpp | 8 ++++++-- bacula/src/qt-console/run/runcmd.cpp | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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); -- 2.39.5