mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-15 04:39:42 +03:00
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.
This commit is contained in:
1 parent
52cfd56c65
commit
4a6a99f5c7
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user