mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
show debug log when in forced serial mode
This commit is contained in:
@@ -530,6 +530,7 @@ std::string EMSESPStreamConsole::console_name() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start up telnet and logging
|
// Start up telnet and logging
|
||||||
|
// Log order is off, err, warning, notice, info, debug, trace, all
|
||||||
void Console::start() {
|
void Console::start() {
|
||||||
// if we've detected a boot into safe mode on ESP8266, start the Serial console too
|
// 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
|
// Serial is always on with the ESP32 as it has 2 UARTs
|
||||||
@@ -544,10 +545,15 @@ void Console::start() {
|
|||||||
|
|
||||||
#ifndef ESP8266
|
#ifndef ESP8266
|
||||||
#if defined(EMSESP_DEBUG)
|
#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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(EMSESP_FORCE_SERIAL)
|
||||||
|
shell->log_level(uuid::log::Level::DEBUG);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(EMSESP_STANDALONE)
|
#if defined(EMSESP_STANDALONE)
|
||||||
// always start in su/admin mode when running tests
|
// always start in su/admin mode when running tests
|
||||||
shell->add_flags(CommandFlags::ADMIN);
|
shell->add_flags(CommandFlags::ADMIN);
|
||||||
|
|||||||
Reference in New Issue
Block a user