debug: add qDebug output to session refresh and event handler
This commit is contained in:
parent
c85252b09a
commit
c8fb652785
|
|
@ -88,6 +88,7 @@ void Ollie9pClient::refreshSessions()
|
||||||
{
|
{
|
||||||
QByteArray out = run9p({"read", "session/idx"});
|
QByteArray out = run9p({"read", "session/idx"});
|
||||||
QString raw = QString::fromUtf8(out).trimmed();
|
QString raw = QString::fromUtf8(out).trimmed();
|
||||||
|
qDebug() << "refreshSessions: output length =" << out.length() << "content:" << raw.left(200);
|
||||||
|
|
||||||
m_sessions.clear();
|
m_sessions.clear();
|
||||||
if (!raw.isEmpty()) {
|
if (!raw.isEmpty()) {
|
||||||
|
|
@ -103,6 +104,7 @@ void Ollie9pClient::refreshSessions()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
qDebug() << "refreshSessions: m_sessions count =" << m_sessions.size();
|
||||||
emit sessionsChanged();
|
emit sessionsChanged();
|
||||||
|
|
||||||
// Auto-select first session if none active
|
// Auto-select first session if none active
|
||||||
|
|
@ -539,6 +541,7 @@ void Ollie9pClient::onEventReadyRead()
|
||||||
// eventwait returned the full session index — use it directly
|
// eventwait returned the full session index — use it directly
|
||||||
QByteArray data = m_eventProc->readAllStandardOutput();
|
QByteArray data = m_eventProc->readAllStandardOutput();
|
||||||
QString raw = QString::fromUtf8(data).trimmed();
|
QString raw = QString::fromUtf8(data).trimmed();
|
||||||
|
qDebug() << "onEventReadyRead: data length =" << data.length() << "content:" << raw.left(200);
|
||||||
|
|
||||||
m_sessions.clear();
|
m_sessions.clear();
|
||||||
if (!raw.isEmpty()) {
|
if (!raw.isEmpty()) {
|
||||||
|
|
@ -554,6 +557,7 @@ void Ollie9pClient::onEventReadyRead()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
qDebug() << "onEventReadyRead: m_sessions count =" << m_sessions.size();
|
||||||
emit sessionsChanged();
|
emit sessionsChanged();
|
||||||
|
|
||||||
// Auto-select first session if none active
|
// Auto-select first session if none active
|
||||||
|
|
|
||||||
Reference in New Issue