Merge branch 'libretiny_logconfig' into integration

This commit is contained in:
J. Nick Koston 2025-06-27 13:59:01 -05:00
commit 13b89f4934
No known key found for this signature in database

View File

@ -10,9 +10,11 @@ namespace libretiny {
static const char *const TAG = "lt.component"; static const char *const TAG = "lt.component";
void LTComponent::dump_config() { void LTComponent::dump_config() {
ESP_LOGCONFIG(TAG, "LibreTiny:"); ESP_LOGCONFIG(TAG,
ESP_LOGCONFIG(TAG, " Version: %s", LT_BANNER_STR + 10); "LibreTiny:\n"
ESP_LOGCONFIG(TAG, " Loglevel: %u", LT_LOGLEVEL); " Version: %s\n"
" Loglevel: %u",
LT_BANNER_STR + 10, LT_LOGLEVEL);
#ifdef USE_TEXT_SENSOR #ifdef USE_TEXT_SENSOR
if (this->version_ != nullptr) { if (this->version_ != nullptr) {