From 9b0ec2dae0069a254c8c281746ca42fd7c6820e5 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Sat, 23 Nov 2024 12:27:15 +0000 Subject: [PATCH] coap_send_internal: Log OSCORE failed PDU --- src/coap_net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coap_net.c b/src/coap_net.c index da0c1e5cba..ab9aa403c7 100644 --- a/src/coap_net.c +++ b/src/coap_net.c @@ -1851,6 +1851,8 @@ coap_send_internal(coap_session_t *session, coap_pdu_t *pdu) { if (osc_pdu == NULL) { coap_log_warn("OSCORE: PDU could not be encrypted\n"); + if (coap_get_log_level() < COAP_LOG_DEBUG) + coap_show_pdu(COAP_LOG_WARN, pdu); goto error; } bytes_written = coap_send_pdu(session, osc_pdu, NULL);