plumber: add debug logging for ollie port reader
This commit is contained in:
parent
73e5af6ce8
commit
df0b38aedf
|
|
@ -228,13 +228,14 @@ void Plumber::startReader()
|
||||||
|
|
||||||
// Start ollie port reader (for ollie:// URLs)
|
// Start ollie port reader (for ollie:// URLs)
|
||||||
if (!m_ollieReader) {
|
if (!m_ollieReader) {
|
||||||
|
qDebug("plumber: starting ollie port reader on %s", qPrintable(path));
|
||||||
m_ollieReader = new PlumbReader(path, QStringLiteral("ollie"));
|
m_ollieReader = new PlumbReader(path, QStringLiteral("ollie"));
|
||||||
connect(m_ollieReader, &PlumbReader::message, this, [this](const QString &data, const QString &, const QString &) {
|
connect(m_ollieReader, &PlumbReader::message, this, [this](const QString &data, const QString &, const QString &) {
|
||||||
|
qDebug("plumber: received ollie message: %s", qPrintable(data));
|
||||||
Q_EMIT ollieMessage(data);
|
Q_EMIT ollieMessage(data);
|
||||||
}, Qt::QueuedConnection);
|
}, Qt::QueuedConnection);
|
||||||
connect(m_ollieReader, &PlumbReader::failed, this, [](const QString &msg) {
|
connect(m_ollieReader, &PlumbReader::failed, this, [](const QString &msg) {
|
||||||
// Silently ignore ollie port errors — port may not exist in plumb rules
|
qWarning("plumber: ollie port FAILED: %s", qPrintable(msg));
|
||||||
qDebug("plumber: ollie port: %s", qPrintable(msg));
|
|
||||||
}, Qt::QueuedConnection);
|
}, Qt::QueuedConnection);
|
||||||
m_ollieReader->start();
|
m_ollieReader->start();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue