From d985cfb5fbc500f6b32c34383a900f7fe0604c1f Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Thu, 26 Dec 2024 17:23:24 -0800 Subject: [PATCH] console: loglevel: improve help text I was confused about why setting the level to something lower didn't seem to work, so this attempts make it more clear that not all log levels are actually available on release builds. Fixes #155 --- src/tangara/dev_console/console.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tangara/dev_console/console.cpp b/src/tangara/dev_console/console.cpp index bc3a7aca..d902c176 100644 --- a/src/tangara/dev_console/console.cpp +++ b/src/tangara/dev_console/console.cpp @@ -73,7 +73,8 @@ void RegisterLogLevel() { .command = "loglevel", .help = "Sets the log level to one of \"VERBOSE\", \"DEBUG\", \"INFO\", " - "\"WARN\", \"ERROR\", \"NONE\"", + "\"WARN\", \"ERROR\", \"NONE\". NOTE: Some log levels aren't available " + "on release builds.", .hint = "level", .func = &CmdLogLevel, .argtable = NULL};