[logger] Optimize log formatting performance (33-67% faster)

This commit is contained in:
J. Nick Koston
2025-10-01 01:41:40 +02:00
parent ec3adaae5c
commit d558e68cf3
+1 -1
View File
@@ -37,7 +37,7 @@ struct device;
namespace esphome::logger {
// Color and letter constants for log levels
static constexpr const char *const LOG_LEVEL_COLORS[] = {
static const char *const LOG_LEVEL_COLORS[] = {
"", // NONE
ESPHOME_LOG_BOLD(ESPHOME_LOG_COLOR_RED), // ERROR
ESPHOME_LOG_COLOR(ESPHOME_LOG_COLOR_YELLOW), // WARNING