debug component, allow without debug logging (#4685)

This commit is contained in:
Jesse Hills committed 2023-04-17 15:45:34 +12:00
1 parent 9fbbcd6d8a
commit 9da261cb39
2 files changed
+4 -16

No files matched your search

@@ -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);