1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-27 05:03:48 +00:00

[logger] Fix bug causing global log level to be overwritten (#8248)

This commit is contained in:
Jonathan Swoboda
2025-02-13 14:56:08 -05:00
committed by GitHub
parent d05f641dd0
commit 46b6dcdfbf
2 changed files with 2 additions and 5 deletions

View File

@@ -102,9 +102,6 @@ void Logger::log_vprintf_(int level, const char *tag, int line, const __FlashStr
#endif
int HOT Logger::level_for(const char *tag) {
// Uses std::vector<> for low memory footprint, though the vector
// could be sorted to minimize lookup times. This feature isn't used that
// much anyway so it doesn't matter too much.
if (this->log_levels_.count(tag) != 0)
return this->log_levels_[tag];
return this->current_level_;