Commit f0028d0a authored by Don Gagne's avatar Don Gagne

Always turn of bogus qt.network.ssl warning

parent 609007c4
...@@ -198,8 +198,12 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) ...@@ -198,8 +198,12 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
#ifdef __mobile__ #ifdef __mobile__
QLoggingCategory::setFilterRules(QStringLiteral("*Log.debug=false")); QLoggingCategory::setFilterRules(QStringLiteral("*Log.debug=false"));
#else #else
QString filterRules;
// Turn off bogus ssl warning
filterRules += "qt.network.ssl.warning=false\n";
if (logging) { if (logging) {
QString filterRules;
QStringList logList = loggingOptions.split(","); QStringList logList = loggingOptions.split(",");
if (logList[0] == "full") { if (logList[0] == "full") {
...@@ -219,9 +223,6 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) ...@@ -219,9 +223,6 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
// We need to turn off these warnings until the firmware meta data is cleaned up // We need to turn off these warnings until the firmware meta data is cleaned up
filterRules += "PX4ParameterLoaderLog.warning=false\n"; filterRules += "PX4ParameterLoaderLog.warning=false\n";
} }
qDebug() << "Filter rules" << filterRules;
QLoggingCategory::setFilterRules(filterRules);
} else { } else {
if (_runningUnitTests) { if (_runningUnitTests) {
// We need to turn off these warnings until the firmware meta data is cleaned up // We need to turn off these warnings until the firmware meta data is cleaned up
...@@ -266,6 +267,9 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) ...@@ -266,6 +267,9 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
} }
} }
} }
qDebug() << "Filter rules" << filterRules;
QLoggingCategory::setFilterRules(filterRules);
#endif #endif
// Set up timer for delayed missing fact display // Set up timer for delayed missing fact display
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment