From e41c27141f6be86063edacb5e715e3a427488fd6 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Sat, 8 Jan 2022 00:27:07 +0300 Subject: [PATCH] libnotificationmanager: Structure logs Hopefully, this will at least look better in console when something goes south. --- libnotificationmanager/job_p.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libnotificationmanager/job_p.cpp b/libnotificationmanager/job_p.cpp index ccc334ff0..ae00d7519 100644 --- a/libnotificationmanager/job_p.cpp +++ b/libnotificationmanager/job_p.cpp @@ -211,10 +211,11 @@ QString JobPrivate::text() const } qCInfo(NOTIFICATIONMANAGER) << "Failed to generate job text for job with following properties:"; - qCInfo(NOTIFICATIONMANAGER) << " processedFiles =" << m_processedFiles << ", totalFiles =" << m_totalFiles - << ", current file name =" << descriptionUrl().fileName() << ", destination url string =" << this->destUrl(); - qCInfo(NOTIFICATIONMANAGER) << "label1 =" << m_descriptionLabel1 << ", value1 =" << m_descriptionValue1 << ", label2 =" << m_descriptionLabel2 - << ", value2 =" << m_descriptionValue2; + qCInfo(NOTIFICATIONMANAGER).nospace() << " processedFiles = " << m_processedFiles << ", totalFiles = " << m_totalFiles; + qCInfo(NOTIFICATIONMANAGER).nospace() << " current file name = " << descriptionUrl().fileName(); + qCInfo(NOTIFICATIONMANAGER).nospace() << " destination url = " << destUrl; + qCInfo(NOTIFICATIONMANAGER).nospace() << " label1 = " << m_descriptionLabel1 << ", value1 = " << m_descriptionValue1; + qCInfo(NOTIFICATIONMANAGER).nospace() << " label2 = " << m_descriptionLabel2 << ", value2 = " << m_descriptionValue2; return QString(); }