mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
new command 'log show' to dump out last log messages. useful for serial when you've missed the startup messages
This commit is contained in:
@@ -51,6 +51,12 @@ static inline EMSESP & to_app(Shell & shell) {
|
||||
|
||||
static void console_log_level(Shell & shell, const std::vector<std::string> & arguments) {
|
||||
if (!arguments.empty()) {
|
||||
// special command called show which dumps out the contents of the web log buffer
|
||||
if (arguments[0] == "show") {
|
||||
EMSESP::webLogService.show(shell);
|
||||
return;
|
||||
}
|
||||
|
||||
uuid::log::Level level;
|
||||
|
||||
if (uuid::log::parse_level_lowercase(arguments[0], level)) {
|
||||
|
||||
Reference in New Issue
Block a user