mirror of https://github.com/nymea/nymea.git
Revert back to qDebug, we're not ready for qInfo yet
parent
8aa2feb7c6
commit
befda2ec00
|
|
@ -53,7 +53,9 @@ static PyObject * PyNymeaLoggingHandler_info(PyNymeaLoggingHandler* self, PyObje
|
||||||
Py_XDECREF(str);
|
Py_XDECREF(str);
|
||||||
strings.append(bytes);
|
strings.append(bytes);
|
||||||
}
|
}
|
||||||
qCInfo(QLoggingCategory(self->category)).noquote() << strings.join(' ');
|
// FIXME: We'll want to use qCInfo() here but the system can't really deal with that yet
|
||||||
|
// Move from qCDebug() to qCInfo() when we support controlling that
|
||||||
|
qCDebug(QLoggingCategory(self->category)).noquote() << strings.join(' ');
|
||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -330,7 +330,7 @@ bool PythonIntegrationPlugin::loadScript(const QString &scriptFile)
|
||||||
Py_DECREF(args);
|
Py_DECREF(args);
|
||||||
|
|
||||||
// Override stdout and stderr
|
// Override stdout and stderr
|
||||||
args = Py_BuildValue("(si)", category.toUtf8().data(), QtMsgType::QtInfoMsg);
|
args = Py_BuildValue("(si)", category.toUtf8().data(), QtMsgType::QtDebugMsg);
|
||||||
PyStdOutHandler*stdOutHandler = reinterpret_cast<PyStdOutHandler*>(PyObject_CallObject((PyObject*)&PyStdOutHandlerType, args));
|
PyStdOutHandler*stdOutHandler = reinterpret_cast<PyStdOutHandler*>(PyObject_CallObject((PyObject*)&PyStdOutHandlerType, args));
|
||||||
Py_DECREF(args);
|
Py_DECREF(args);
|
||||||
PySys_SetObject("stdout", (PyObject*)stdOutHandler);
|
PySys_SetObject("stdout", (PyObject*)stdOutHandler);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue