Commit bcc8a2ab authored by Don Gagne's avatar Don Gagne

Merge pull request #1951 from DonLakeFlyer/LogFixes

Log fixes, MavlinkLogTest::_connectLogArm_test
parents d242549a f0169d1e
......@@ -219,17 +219,7 @@ QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
filterRules += ".debug=true\n";
}
}
if (_runningUnitTests) {
// We need to turn off these warnings until the firmware meta data is cleaned up
filterRules += "PX4ParameterLoaderLog.warning=false\n";
}
} else {
if (_runningUnitTests) {
// We need to turn off these warnings until the firmware meta data is cleaned up
QLoggingCategory::setFilterRules(QStringLiteral("PX4ParameterLoaderLog.warning=false"));
}
// First thing we want to do is set up the qtlogging.ini file. If it doesn't already exist we copy
// it to the correct location. This way default debug builds will have logging turned off.
......
......@@ -31,7 +31,7 @@
#include <string.h>
QGC_LOGGING_CATEGORY(MockLinkLog, "MockLinkLog")
QGC_LOGGING_CATEGORY(MockLinkLogVerbose, "MockLinkLogVerbose")
QGC_LOGGING_CATEGORY(MockLinkVerboseLog, "MockLinkVerboseLog")
/// @file
/// @brief Mock implementation of a Link.
......@@ -216,7 +216,7 @@ void MockLink::_loadParams(void)
break;
}
qCDebug(MockLinkLogVerbose) << "Loading param" << paramName << paramValue;
qCDebug(MockLinkVerboseLog) << "Loading param" << paramName << paramValue;
_mapParamName2Value[componentId][paramName] = paramValue;
_mapParamName2MavParamType[paramName] = static_cast<MAV_PARAM_TYPE>(paramType);
......
......@@ -33,7 +33,7 @@
#include "QGCMAVLink.h"
Q_DECLARE_LOGGING_CATEGORY(MockLinkLog)
Q_DECLARE_LOGGING_CATEGORY(MockLinkLogVerbose)
Q_DECLARE_LOGGING_CATEGORY(MockLinkVerboseLog)
/// @file
/// @brief Mock implementation of a Link.
......
......@@ -180,7 +180,7 @@ void MavlinkLogTest::_connectLogNoArm_test(void)
void MavlinkLogTest::_connectLogArm_test(void)
{
//_connectLogWorker(true);
_connectLogWorker(true);
}
void MavlinkLogTest::_deleteTempLogFiles_test(void)
......
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