From 4a6a99f5c7c840a972d84cbe008af3e0e27beaee Mon Sep 17 00:00:00 2001 From: Richard Retanubun Date: Fri, 3 Mar 2023 16:19:54 -0500 Subject: [PATCH] coap-client: Make retransmision give up visible Useful when coap-client is used to send block transfers. Without this, users have to run coap-client with `-v 7` before they can see why coap-client ends earlier than expected. Logging at warning level to match the default log level set by coap-client source code. --- src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.c b/src/net.c index c103685e..26c7e347 100644 --- a/src/net.c +++ b/src/net.c @@ -1568,7 +1568,7 @@ coap_retransmit(coap_context_t *context, coap_queue_t *node) { } /* no more retransmissions, remove node from system */ - coap_log_debug("** %s: mid=0x%x: give up after %d attempts\n", + coap_log_warn("** %s: mid=0x%x: give up after %d attempts\n", coap_session_str(node->session), node->id, node->retransmit_cnt); #if COAP_SERVER_SUPPORT