1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 23:22:21 +01:00

Skip API log message calls for unsubscribed log levels (#9514)

This commit is contained in:
J. Nick Koston
2025-07-15 15:43:55 -10:00
committed by GitHub
parent e152690867
commit 40935f7ae4
3 changed files with 2 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ void APIServer::setup() {
return;
}
for (auto &c : this->clients_) {
if (!c->flags_.remove)
if (!c->flags_.remove && c->get_log_subscription_level() >= level)
c->try_send_log_message(level, tag, message, message_len);
}
});