This commit is contained in:
J. Nick Koston
2026-02-04 07:47:21 +01:00
parent 4d9b7c47f8
commit 4da67712a9
+1 -6
View File
@@ -41,11 +41,6 @@
struct device;
#endif
// Platforms that support thread names in log output
#if defined(USE_ESP32) || defined(USE_LIBRETINY) || defined(USE_ZEPHYR) || defined(USE_HOST)
#define USE_LOGGER_THREAD_NAME
#endif
namespace esphome::logger {
/** Interface for receiving log messages without std::function overhead.
@@ -192,7 +187,7 @@ struct LogBuffer {
*p++ = '0' + (remainder - tens * 10);
*p++ = ']';
#ifdef USE_LOGGER_THREAD_NAME
#if defined(USE_ESP32) || defined(USE_LIBRETINY) || defined(USE_ZEPHYR) || defined(USE_HOST)
// Write thread name with bold red color
if (thread_name != nullptr) {
this->write_ansi_color_(p, 1); // Bold red for thread name