Skip to content

Commit 6a75a27

Browse files
committed
more webviewer options
1 parent 8d83445 commit 6a75a27

File tree

6 files changed

+10769
-10575
lines changed

6 files changed

+10769
-10575
lines changed

Source/Application/Main.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static void Usage()
8282
Info() << "\t[-e [baudrate] [serial port] - read NMEA from serial port at specified baudrate]";
8383
Info() << "\t[-f [filename] write NMEA lines to file]";
8484
Info() << "\t[-F run model optimized for speed at the cost of accuracy for slow hardware (default: off)]";
85-
Info() << "\t[-G [LEVEL level] - control logging (levels: DEBUG, INFO, WARNING, ERROR, CRITICAL)]";
85+
Info() << "\t[-G [LEVEL level] [SYSTEM on] - control logging (levels: DEBUG, INFO, WARNING, ERROR, CRITICAL) or enable system logging]";
8686
Info() << "\t[-h display this message and terminate (default: false)]";
8787
Info() << "\t[-H [optional: url] - send messages via HTTP, for options see documentation]";
8888
Info() << "\t[-i [interface] - read NMEA2000 data from socketCAN interface - Linux only]";
@@ -304,13 +304,13 @@ int main(int argc, char *argv[])
304304
Util::Convert::toUpper(arg1);
305305
Util::Convert::toUpper(arg2);
306306

307-
if (cb != -1 && arg1 == "SYSTEM" && arg2 == "ON")
308-
{
309-
Logger::getInstance().removeLogListener(cb);
310-
cb = -1;
311-
}
312-
313-
parseSettings(Logger::getInstance(), argv, ptr, argc);
307+
if (cb != -1 && arg1 == "SYSTEM" && arg2 == "ON")
308+
{
309+
Logger::getInstance().removeLogListener(cb);
310+
cb = -1;
311+
// Enable DEBUG level when switching to system logging for journalctl filtering
312+
Logger::getInstance().setMinLevel(LogLevel::_DEBUG);
313+
} parseSettings(Logger::getInstance(), argv, ptr, argc);
314314
break;
315315
case 's':
316316
Assert(count == 1, param, "does require one parameter [sample rate].");

0 commit comments

Comments
 (0)