diff --git a/tools/cgathui_common/ble_etcp.c b/tools/cgathui_common/ble_etcp.c index d9f299e3..776bdd69 100644 --- a/tools/cgathui_common/ble_etcp.c +++ b/tools/cgathui_common/ble_etcp.c @@ -386,8 +386,12 @@ static size_t nearby(void* arg, struct local_peer* out, size_t capacity) { static void invitation_result(struct ble_etcp* d, struct ble_invite_pending* p, int status) { uint64_t peer = p->peer, request = p->request; memset(p, 0, sizeof(*p)); - DEBUG_INFO(CAT, "BLE invitation delivered peer=%016llx request=%llu status=%d", - (unsigned long long)peer, (unsigned long long)request, status); + if (status == LOCAL_DELIVERY_RECEIVED) + DEBUG_INFO(CAT, "BLE invitation delivered peer=%016llx request=%llu status=%d", + (unsigned long long)peer, (unsigned long long)request, status); + else DEBUG_WARN(CAT, "BLE invitation delivery %s peer=%016llx request=%llu status=%d", + status == LOCAL_DELIVERY_FORBIDDEN ? "forbidden" : "failed", + (unsigned long long)peer, (unsigned long long)request, status); chat_local_delivered(d->instance, request, peer, status); } static int send_invitation(void* arg, uint64_t node, uint64_t request, const void* data, size_t len) {