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:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user