fix a few debug logs to use proper categorized logging
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 13 Feb 2023 14:19:14 +0000 (15:19 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 17 May 2023 16:16:08 +0000 (18:16 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/iconutils.cpp

index 64d3986aa5e7998b0a616c7a2ebdec6fdc6bc5b0..2f6b6f2ad2d033a9c848dbd6246c07276563d9dc 100644 (file)
@@ -67,7 +67,7 @@ QImage createSvgImageWithCustomColor(const QString &fileName, const QColor &cust
     QImage result{};
 
     if (fileName.isEmpty() || !customColor.isValid()) {
-        qWarning(lcIconUtils) << "invalid fileName or customColor";
+        qCWarning(lcIconUtils) << "invalid fileName or customColor";
         return result;
     }
 
@@ -106,7 +106,7 @@ QImage createSvgImageWithCustomColor(const QString &fileName, const QColor &cust
 
     Q_ASSERT(!sourceSvg.isEmpty());
     if (sourceSvg.isEmpty()) {
-        qWarning(lcIconUtils) << "Failed to find base SVG file for" << fileName;
+        qCWarning(lcIconUtils) << "Failed to find base SVG file for" << fileName;
         return result;
     }
 
@@ -114,7 +114,7 @@ QImage createSvgImageWithCustomColor(const QString &fileName, const QColor &cust
 
     Q_ASSERT(!result.isNull());
     if (result.isNull()) {
-        qWarning(lcIconUtils) << "Failed to load pixmap for" << fileName;
+        qCWarning(lcIconUtils) << "Failed to load pixmap for" << fileName;
     }
 
     return result;