From 7840dab9cc03730ceaf7bfdc0b93674bc6489de6 Mon Sep 17 00:00:00 2001 From: Jacob Brydolf Date: Mon, 7 Nov 2016 15:00:14 +0100 Subject: [PATCH] DaemonManager: console debug output --- src/daemon/DaemonManager.cpp | 12 ++---------- src/daemon/DaemonManager.h | 2 -- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp index 1fdfcd52..aa87f1c6 100644 --- a/src/daemon/DaemonManager.cpp +++ b/src/daemon/DaemonManager.cpp @@ -80,9 +80,8 @@ void DaemonManager::printOutput() QStringList strLines = QString(byteArray).split("\n"); foreach (QString line, strLines){ - // dConsole.append(line+"\n"); emit daemonConsoleUpdated(line); - // qDebug() << "Daemon: " + line; + qDebug() << "Daemon: " + line; } } @@ -92,9 +91,8 @@ void DaemonManager::printError() QStringList strLines = QString(byteArray).split("\n"); foreach (QString line, strLines){ - // dConsole.append(line+"\n"); emit daemonConsoleUpdated(line); - // qDebug() << "Daemon ERROR: " + line; + qDebug() << "Daemon ERROR: " + line; } } @@ -109,12 +107,6 @@ bool DaemonManager::running() const return false; } -QString DaemonManager::console() const -{ - return dConsole; -} - - DaemonManager::DaemonManager(QObject *parent) : QObject(parent) { diff --git a/src/daemon/DaemonManager.h b/src/daemon/DaemonManager.h index 4dfc77a1..4ee5214e 100644 --- a/src/daemon/DaemonManager.h +++ b/src/daemon/DaemonManager.h @@ -15,7 +15,6 @@ public: Q_INVOKABLE bool start(); Q_INVOKABLE bool stop(); - Q_INVOKABLE QString console() const; // return true if daemon process is started Q_INVOKABLE bool running() const; @@ -34,7 +33,6 @@ private: explicit DaemonManager(QObject *parent = 0); static DaemonManager * m_instance; QProcess *m_daemon; - QString dConsole; bool initialized = false; };