rtabmap app: default log level is now warning. This avoids showing log stuff when using --params argument for example.

This commit is contained in:
matlabbe
2018-10-12 16:03:29 -04:00
parent 7fdd212462
commit 527cbddb4b
+4 -5
View File
@@ -43,7 +43,7 @@ int main(int argc, char* argv[])
{
/* Set logger type */
ULogger::setType(ULogger::kTypeConsole);
ULogger::setLevel(ULogger::kInfo);
ULogger::setLevel(ULogger::kWarning);
/* Create tasks */
QApplication * app = new QApplication(argc, argv);
@@ -65,7 +65,7 @@ int main(int argc, char* argv[])
}
}
UINFO("Program started...");
printf("Program started...\n");
UEventsManager::addHandler(mainWindow);
@@ -101,14 +101,13 @@ int main(int argc, char* argv[])
UEventsManager::removeHandler(mainWindow);
UEventsManager::removeHandler(rtabmap);
UINFO("Killing threads...");
rtabmap->join(true);
UINFO("Closing RTAB-Map...");
printf("Closing RTAB-Map...\n");
delete rtabmap;
delete mainWindow;
delete app;
UINFO("All done!");
printf("All done!\n");
return 0;
}