Minor: added some debug output

This commit is contained in:
Gerhard Hoffmann 2024-02-05 14:52:09 +01:00
parent 0723ef335c
commit 5599c56114

View File

@ -23,7 +23,8 @@ ReportingThread::~ReportingThread() {
void ReportingThread::run() {
qCritical()
<< QDateTime::currentDateTime() << "START REPORT THREAD"
<< QDateTime::currentDateTime().time().toString(Qt::ISODate)
<< "START REPORT THREAD"
<< "(PART OF APPLICATION" << QCoreApplication::applicationName() << ")";
static QString report("");
@ -32,9 +33,9 @@ void ReportingThread::run() {
while (!m_hw->dcDownloadGetRunning()) {
if (--cnt > 0) {
report = QString("%1 waiting for download to start %2")
.arg(QDateTime::currentDateTime().toString(Qt::ISODate))
.arg(QDateTime::currentDateTime().time().toString(Qt::ISODate))
.arg(cnt);
qCritical() << __LINE__ << "STATUS" << report;
qCritical() << "(" << __func__ << ":" << __LINE__ << ") STATUS" << report;
emit m_hw->hwapi_reportDCDownloadStatus(report);
QThread::sleep(1);
} else break;