Skip to content

Commit

Permalink
tests: raise log level to Debug for corba tests (temporarily)
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerj committed May 7, 2019
1 parent 63d0e07 commit 700dc2c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions tests/corba_ipc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@ int ORO_main(int argc, char** argv)
#endif
corba::TaskContextProxy::InitOrb(argc,argv);

// disable logging of errors or warnings if no ORO_LOGLEVEL was set.
if ( log().getLogLevel() == Logger::Warning ) {
// log(Info) << "Lowering LogLevel to Critical." << endlog();
// log().setLogLevel(Logger::Critical);
log().setLogLevel(Logger::Debug);
log(Info) << "Setting LogLevel to Debug." << endlog();
} else {
log(Info) << "LogLevel unaltered by test-runner." << endlog();
}

PluginLoader::Instance()->loadTypekits("../rtt");

#ifndef WIN32
Expand Down
7 changes: 4 additions & 3 deletions tests/test-runner-corba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,12 @@ boost::unit_test::test_suite* init_unit_test_suite(int argc, char** const argv)
corba::TaskContextServer::InitOrb(argc,argv);
corba::TaskContextServer::ThreadOrb();


// disable logging of errors or warnings if no ORO_LOGLEVEL was set.
if ( log().getLogLevel() == Logger::Warning ) {
log(Info) << "Lowering LogLevel to Critical." << endlog();
log().setLogLevel(Logger::Critical);
// log(Info) << "Lowering LogLevel to Critical." << endlog();
// log().setLogLevel(Logger::Critical);
log().setLogLevel(Logger::Debug);
log(Info) << "Setting LogLevel to Debug." << endlog();
} else {
log(Info) << "LogLevel unaltered by test-runner." << endlog();
}
Expand Down

0 comments on commit 700dc2c

Please sign in to comment.