From 281194738cd67dae45c33e8a2421b860da1b0ee1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 27 May 2025 09:50:16 -0500 Subject: [PATCH] logging --- esphome/core/application.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/core/application.cpp b/esphome/core/application.cpp index 2cba326107..1a910ff427 100644 --- a/esphome/core/application.cpp +++ b/esphome/core/application.cpp @@ -153,7 +153,9 @@ void Application::loop() { ESP_LOGW(TAG, "select() failed with errno %d", errno); delay(delay_time); } else if (ret > 0) { - ESP_LOGVV(TAG, "select() returned %d ready socket(s)", ret); + ESP_LOGVV(TAG, "select() woke early: %d socket(s) ready (saved up to %ums)", ret, delay_time); + } else if (ret == 0) { + ESP_LOGVV(TAG, "select() timeout after %ums (no sockets ready)", delay_time); } // If ret == 0, timeout occurred (normal) // If ret > 0, socket(s) ready for reading (will be handled in component loops)