Skip to content

Commit

Permalink
Improve logging #104
Browse files Browse the repository at this point in the history
  • Loading branch information
fsaris committed Oct 25, 2024
1 parent f6f3b2d commit b2b7719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/awox_mesh/awox_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void AwoxMesh::loop() {
if (publish.online == publish.device->online) {
this->publish_availability(publish.device, false);
} else {
ESP_LOGD(TAG, "Skipped publishing availability for %u - %s (is currently %s)", publish.device->mesh_id,
ESP_LOGD(TAG, "Skipped publishing availability for %u - %s (is currently %s again)", publish.device->mesh_id,
publish.online ? "Online" : "Offline", publish.device->online ? "Online" : "Offline");
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/awox_mesh/awox_mesh_mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void AwoxMeshMqtt::publish_availability(Device *device) {
this->last_published_availability_[device->dest()] = device->online;

const std::string message = device->online ? "online" : "offline";
ESP_LOGI(TAG, "Publish online/offline for %u - %s", device->mesh_id, message.c_str());
ESP_LOGI(TAG, "Publish online/offline for device %u - %s", device->mesh_id, message.c_str());
global_mqtt_client->publish(this->get_mqtt_topic_for_(device, "availability"), message, 0, true);
}

Expand Down

0 comments on commit b2b7719

Please sign in to comment.