From 5fe41e8a998ab27d019f34fba12b9f5e0aec46af Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 20 Sep 2016 21:12:19 +0300 Subject: [PATCH] Suppress message inside noisyFailureMsgHandler. ref #568. --HG-- branch : develop --- src/app/tape/mapplication.cpp | 6 ++++++ src/app/valentina/core/vapplication.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/app/tape/mapplication.cpp b/src/app/tape/mapplication.cpp index d134681da..4337f0899 100644 --- a/src/app/tape/mapplication.cpp +++ b/src/app/tape/mapplication.cpp @@ -108,6 +108,12 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con { type = QtDebugMsg; } + + // See issue #568 + if ((type == QtWarningMsg) && msg.contains(QStringLiteral("Error receiving trust for a CA certificate"))) + { + type = QtDebugMsg; + } #endif // this is another one that doesn't make sense as just a debug message. pretty serious diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index c2b303348..c47cd4f9f 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -103,6 +103,12 @@ inline void noisyFailureMsgHandler(QtMsgType type, const QMessageLogContext &con { type = QtDebugMsg; } + + // See issue #568 + if ((type == QtWarningMsg) && msg.contains(QStringLiteral("Error receiving trust for a CA certificate"))) + { + type = QtDebugMsg; + } #endif // this is another one that doesn't make sense as just a debug message. pretty serious