mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-08 12:30:20 +08:00
rtabmap app: default log level is now warning. This avoids showing log stuff when using --params argument for example.
This commit is contained in:
+4
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user