From 8ad51b7377bab2f0a5e40d34fc4c31683a6eb1ae Mon Sep 17 00:00:00 2001 From: proddy Date: Fri, 14 Aug 2020 12:09:51 +0200 Subject: [PATCH] log levels always lowercase --- src/console.cpp | 2 +- src/emsesp.cpp | 2 +- src/system.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/console.cpp b/src/console.cpp index 8ff9710c6..b71b59427 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -333,7 +333,7 @@ void Console::load_standard_commands(unsigned int context) { } shell.println(); } - shell.printfln(F_(log_level_fmt), uuid::log::format_level_uppercase(shell.log_level())); + shell.printfln(F_(log_level_fmt), uuid::log::format_level_lowercase(shell.log_level())); }, [](Shell & shell __attribute__((unused)), const std::vector & arguments __attribute__((unused))) -> std::vector { return uuid::log::levels_lowercase(); diff --git a/src/emsesp.cpp b/src/emsesp.cpp index 42eec11fb..07605ba8d 100644 --- a/src/emsesp.cpp +++ b/src/emsesp.cpp @@ -212,7 +212,7 @@ void EMSESP::show_ems(uuid::console::Shell & shell) { shell.printfln(F(" #telegrams received: %d"), rxservice_.telegram_count()); shell.printfln(F(" #read requests sent: %d"), txservice_.telegram_read_count()); shell.printfln(F(" #write requests sent: %d"), txservice_.telegram_write_count()); - shell.printfln(F(" #corrupted telegrams: %d (%d%%)"), rxservice_.telegram_error_count(), success_rate); + shell.printfln(F(" #incomplete telegrams: %d (%d%%)"), rxservice_.telegram_error_count(), success_rate); shell.printfln(F(" #tx fails (after %d retries): %d"), TxService::MAXIMUM_TX_RETRIES, txservice_.telegram_fail_count()); } diff --git a/src/system.cpp b/src/system.cpp index 5a439a196..302a9578c 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -406,7 +406,7 @@ void System::show_system(uuid::console::Shell & shell) { shell.print(" "); shell.printfln(F_(host_fmt), !settings.syslog_host.isEmpty() ? settings.syslog_host.c_str() : uuid::read_flash_string(F_(unset)).c_str()); shell.print(" "); - shell.printfln(F_(log_level_fmt), uuid::log::format_level_uppercase(static_cast(settings.syslog_level))); + shell.printfln(F_(log_level_fmt), uuid::log::format_level_lowercase(static_cast(settings.syslog_level))); shell.print(" "); shell.printfln(F_(mark_interval_fmt), settings.syslog_mark_interval); });