[esp8266] Add crash handler for post-mortem diagnostics (#15465)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-04-06 03:30:56 +00:00
1 parent aac74f4c94
commit 10f08e0802
7 files changed
+276 -5

No files matched your search

@@ -1,5 +1,9 @@
#ifdef USE_ESP8266
#include "logger.h"
#include "esphome/core/defines.h"
#ifdef USE_ESP8266_CRASH_HANDLER
#include "esphome/components/esp8266/crash_handler.h"
#endif
#include "esphome/core/log.h"
namespace esphome::logger {
@@ -26,6 +30,9 @@ void Logger::pre_setup() {
global_logger = this;
ESP_LOGI(TAG, "Log initialized");
#ifdef USE_ESP8266_CRASH_HANDLER
esp8266::crash_handler_log();
#endif
}
const LogString *Logger::get_uart_selection_() {