Maemo: Display UTFS server stderr output.

This will help us diagnose errors.
This commit is contained in:
Christian Kandeler
2010-08-26 11:17:40 +02:00
parent 4387b47f92
commit a437f824c4
8 changed files with 33 additions and 0 deletions

View File

@@ -300,11 +300,22 @@ void MaemoRemoteMounter::startUtfsServers()
SLOT(handleUtfsServerFinished(int,QProcess::ExitStatus)));
connect(utfsServerProc.data(), SIGNAL(error(QProcess::ProcessError)),
this, SLOT(handleUtfsServerError(QProcess::ProcessError)));
connect(utfsServerProc.data(), SIGNAL(readyReadStandardError()), this,
SLOT(handleUtfsServerStderr()));
m_utfsServers << utfsServerProc;
utfsServerProc->start(utfsServer(), utfsServerArgs);
}
}
void MaemoRemoteMounter::handleUtfsServerStderr()
{
if (!m_stop) {
QProcess * const proc = static_cast<QProcess *>(sender());
const QByteArray &output = proc->readAllStandardError();
emit debugOutput(QString::fromLocal8Bit(output));
}
}
void MaemoRemoteMounter::handleUtfsServerError(QProcess::ProcessError)
{
if (m_stop || m_utfsServers.isEmpty())