From 578054046c941baa7e2d6a830129b243b741310d Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 5 Sep 2020 19:41:43 +0200 Subject: [PATCH] show debug log when in forced serial mode --- src/console.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/console.cpp b/src/console.cpp index 506169852..83eaa1bda 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -530,6 +530,7 @@ std::string EMSESPStreamConsole::console_name() { } // Start up telnet and logging +// Log order is off, err, warning, notice, info, debug, trace, all void Console::start() { // if we've detected a boot into safe mode on ESP8266, start the Serial console too // Serial is always on with the ESP32 as it has 2 UARTs @@ -544,10 +545,15 @@ void Console::start() { #ifndef ESP8266 #if defined(EMSESP_DEBUG) - shell->log_level(uuid::log::Level::DEBUG); // order is: err, warning, notice, info, debug, trace, all + shell->log_level(uuid::log::Level::DEBUG); #endif #endif +#if defined(EMSESP_FORCE_SERIAL) + shell->log_level(uuid::log::Level::DEBUG); +#endif + + #if defined(EMSESP_STANDALONE) // always start in su/admin mode when running tests shell->add_flags(CommandFlags::ADMIN);