Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
bcc8a2ab
Commit
bcc8a2ab
authored
Oct 11, 2015
by
Don Gagne
Browse files
Merge pull request #1951 from DonLakeFlyer/LogFixes
Log fixes, MavlinkLogTest::_connectLogArm_test
parents
d242549a
f0169d1e
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/QGCApplication.cc
View file @
bcc8a2ab
...
...
@@ -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.
...
...
src/comm/MockLink.cc
View file @
bcc8a2ab
...
...
@@ -31,7 +31,7 @@
#include
<string.h>
QGC_LOGGING_CATEGORY
(
MockLinkLog
,
"MockLinkLog"
)
QGC_LOGGING_CATEGORY
(
MockLink
Log
Verbose
,
"MockLink
Log
Verbose"
)
QGC_LOGGING_CATEGORY
(
MockLinkVerbose
Log
,
"MockLinkVerbose
Log
"
)
/// @file
/// @brief Mock implementation of a Link.
...
...
@@ -216,7 +216,7 @@ void MockLink::_loadParams(void)
break
;
}
qCDebug
(
MockLink
Log
Verbose
)
<<
"Loading param"
<<
paramName
<<
paramValue
;
qCDebug
(
MockLinkVerbose
Log
)
<<
"Loading param"
<<
paramName
<<
paramValue
;
_mapParamName2Value
[
componentId
][
paramName
]
=
paramValue
;
_mapParamName2MavParamType
[
paramName
]
=
static_cast
<
MAV_PARAM_TYPE
>
(
paramType
);
...
...
src/comm/MockLink.h
View file @
bcc8a2ab
...
...
@@ -33,7 +33,7 @@
#include
"QGCMAVLink.h"
Q_DECLARE_LOGGING_CATEGORY
(
MockLinkLog
)
Q_DECLARE_LOGGING_CATEGORY
(
MockLink
Log
Verbose
)
Q_DECLARE_LOGGING_CATEGORY
(
MockLinkVerbose
Log
)
/// @file
/// @brief Mock implementation of a Link.
...
...
src/qgcunittest/MavlinkLogTest.cc
View file @
bcc8a2ab
...
...
@@ -180,7 +180,7 @@ void MavlinkLogTest::_connectLogNoArm_test(void)
void
MavlinkLogTest
::
_connectLogArm_test
(
void
)
{
//
_connectLogWorker(true);
_connectLogWorker
(
true
);
}
void
MavlinkLogTest
::
_deleteTempLogFiles_test
(
void
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment