From 8e51590c32341324cc80dcd5320d376ea4958b30 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 11 Jun 2025 12:59:57 -0500 Subject: [PATCH] remove workaround --- esphome/components/logger/logger.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/esphome/components/logger/logger.cpp b/esphome/components/logger/logger.cpp index 59a3398ce8..a364b93cf5 100644 --- a/esphome/components/logger/logger.cpp +++ b/esphome/components/logger/logger.cpp @@ -130,15 +130,6 @@ inline int Logger::level_for(const char *tag) { } void HOT Logger::call_log_callbacks_(int level, const char *tag, const char *msg) { -#ifdef USE_ESP32 - // Suppress network-logging if memory constrained - // In some configurations (eg BLE enabled) there may be some transient - // memory exhaustion, and trying to log when OOM can lead to a crash. Skipping - // here usually allows the stack to recover instead. - // See issue #1234 for analysis. - if (xPortGetFreeHeapSize() < 2048) - return; -#endif this->log_callback_.call(level, tag, msg); }