1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-16 14:55:50 +00:00

debug component, allow without debug logging (#4685)

This commit is contained in:
Jesse Hills
2023-04-14 14:29:28 +12:00
committed by GitHub
parent 7b0fca6824
commit 6b67acbeb5
2 changed files with 4 additions and 16 deletions

View File

@@ -37,6 +37,10 @@ static uint32_t get_free_heap() {
}
void DebugComponent::dump_config() {
#ifndef ESPHOME_LOG_HAS_DEBUG
return; // Can't log below if debug logging is disabled
#endif
std::string device_info;
std::string reset_reason;
device_info.reserve(256);