diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 09b505ba..c55f36a4 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -346,6 +346,12 @@ void MainWindow::appendLogNote(const QString& text) appendLogRaw("NOTE: " + text); } +void MainWindow::appendLogDebug(const QString& text) { + if (appConfig().logLevel() >= 4) { + appendLogRaw("DEBUG: " + text); + } +} + void MainWindow::appendLogError(const QString& text) { appendLogRaw("ERROR: " + text); @@ -967,7 +973,7 @@ void MainWindow::on_m_pCheckBoxAutoConnect_toggled(bool checked) if (!isBonjourRunning() && checked) { int r = QMessageBox::information( this, tr("Synergy"), - tr("Auto connect feature requires Bonjour installed.\n\n" + tr("Auto connect feature requires Bonjour.\n\n" "Do you want to install Bonjour?"), QMessageBox::Yes | QMessageBox::No); @@ -1011,8 +1017,7 @@ bool MainWindow::isServiceRunning(QString name) delete[] array; if (hService == NULL) { - appendLogNote("failed to open " + name + " service, error: " + - GetLastError()); + appendLogDebug("failed to open service: " + name); return false; } diff --git a/src/gui/src/MainWindow.h b/src/gui/src/MainWindow.h index 782c7bf3..0fb31000 100644 --- a/src/gui/src/MainWindow.h +++ b/src/gui/src/MainWindow.h @@ -115,6 +115,7 @@ class MainWindow : public QMainWindow, public Ui::MainWindowBase public slots: void appendLogRaw(const QString& text); void appendLogNote(const QString& text); + void appendLogDebug(const QString& text); void appendLogError(const QString& text); void startSynergy();