Merge pull request #10845 from kb2ma/nanocoap/server_debug_msg

net/nanocoap: add debug message for server
This commit is contained in:
Ken Bannister 2019-01-23 11:41:47 +00:00 committed by GitHub
commit 7e77ac7ace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,6 +145,9 @@ int nanocoap_server(sock_udp_ep_t *local, uint8_t *buf, size_t bufsize)
if ((res = coap_handle_req(&pkt, buf, bufsize)) > 0) {
res = sock_udp_send(&sock, buf, res, &remote);
}
else {
DEBUG("error handling request %d\n", (int)res);
}
}
}