From 5599c561144326b237e6b0484cbd41a79aece7bd Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 5 Feb 2024 14:52:09 +0100 Subject: [PATCH] Minor: added some debug output --- src/reporting_thread.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/reporting_thread.cpp b/src/reporting_thread.cpp index d26a653..107c7ca 100644 --- a/src/reporting_thread.cpp +++ b/src/reporting_thread.cpp @@ -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;