shell: modules: kernel_service: deprecate log_level

Log_level command is a duplicate of 'log enable' command from
the logging command set (enabled by CONFIG_LOG_CMDS=y). Adding
warning about deprecation as 'log enable' is recommended since
it has more features (e.g. autocompletion).

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruściński 2025-01-15 09:01:40 +01:00 committed by Benjamin Cabé
parent bc4a2f37f3
commit 8207a05304

View file

@ -17,6 +17,8 @@ static int cmd_kernel_log_level_set(const struct shell *sh, size_t argc, char **
uint8_t severity = shell_strtoul(argv[2], 10, &err);
shell_warn(sh, "This command is deprecated as it is a duplicate. "
"Use 'log enable' command from logging commands set.");
if (err) {
shell_error(sh, "Unable to parse log severity (err %d)", err);