mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-25 12:05:54 +00:00
DaemonManager: console debug output
This commit is contained in:
parent
14a5bd5dcc
commit
7840dab9cc
2 changed files with 2 additions and 12 deletions
|
@ -80,9 +80,8 @@ void DaemonManager::printOutput()
|
||||||
QStringList strLines = QString(byteArray).split("\n");
|
QStringList strLines = QString(byteArray).split("\n");
|
||||||
|
|
||||||
foreach (QString line, strLines){
|
foreach (QString line, strLines){
|
||||||
// dConsole.append(line+"\n");
|
|
||||||
emit daemonConsoleUpdated(line);
|
emit daemonConsoleUpdated(line);
|
||||||
// qDebug() << "Daemon: " + line;
|
qDebug() << "Daemon: " + line;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,9 +91,8 @@ void DaemonManager::printError()
|
||||||
QStringList strLines = QString(byteArray).split("\n");
|
QStringList strLines = QString(byteArray).split("\n");
|
||||||
|
|
||||||
foreach (QString line, strLines){
|
foreach (QString line, strLines){
|
||||||
// dConsole.append(line+"\n");
|
|
||||||
emit daemonConsoleUpdated(line);
|
emit daemonConsoleUpdated(line);
|
||||||
// qDebug() << "Daemon ERROR: " + line;
|
qDebug() << "Daemon ERROR: " + line;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,12 +107,6 @@ bool DaemonManager::running() const
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString DaemonManager::console() const
|
|
||||||
{
|
|
||||||
return dConsole;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
DaemonManager::DaemonManager(QObject *parent)
|
DaemonManager::DaemonManager(QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,6 @@ public:
|
||||||
|
|
||||||
Q_INVOKABLE bool start();
|
Q_INVOKABLE bool start();
|
||||||
Q_INVOKABLE bool stop();
|
Q_INVOKABLE bool stop();
|
||||||
Q_INVOKABLE QString console() const;
|
|
||||||
|
|
||||||
// return true if daemon process is started
|
// return true if daemon process is started
|
||||||
Q_INVOKABLE bool running() const;
|
Q_INVOKABLE bool running() const;
|
||||||
|
@ -34,7 +33,6 @@ private:
|
||||||
explicit DaemonManager(QObject *parent = 0);
|
explicit DaemonManager(QObject *parent = 0);
|
||||||
static DaemonManager * m_instance;
|
static DaemonManager * m_instance;
|
||||||
QProcess *m_daemon;
|
QProcess *m_daemon;
|
||||||
QString dConsole;
|
|
||||||
bool initialized = false;
|
bool initialized = false;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue