1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 15:55:46 +00:00

Don't allow debug component if you don't have at least debug logging level (#4076)

This commit is contained in:
Jesse Hills
2022-11-23 22:42:20 +13:00
committed by GitHub
parent d067c8f80b
commit 81b4078871
2 changed files with 21 additions and 11 deletions

View File

@@ -41,12 +41,6 @@ void DebugComponent::dump_config() {
std::string reset_reason;
device_info.reserve(256);
#ifndef ESPHOME_LOG_HAS_DEBUG
ESP_LOGE(TAG, "Debug Component requires debug log level!");
this->status_set_error();
return;
#endif
ESP_LOGCONFIG(TAG, "Debug component:");
#ifdef USE_TEXT_SENSOR
LOG_TEXT_SENSOR(" ", "Device info", this->device_info_);