From f52ef9adaa768cae595e937c988115f3f0295359 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Fri, 16 Oct 2020 05:16:57 -0400 Subject: [PATCH] coap_add_option: Fix code rebase logging level issue PR #476 added in coap_insert_option() which could be called by coap_add_option() with with a coap_log() message set to LOG_DEBUG. When PR #539 was merged in, this upped the logging level to LOG_WARNING which now causes test/testdriver to report unecessary messages. Logging level reverted to LOG_DEBUG. --- src/pdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdu.c b/src/pdu.c index b9c08f3c..d0ad6ccd 100644 --- a/src/pdu.c +++ b/src/pdu.c @@ -383,7 +383,7 @@ coap_add_option(coap_pdu_t *pdu, uint16_t type, size_t len, } if (type < pdu->max_opt) { - coap_log(LOG_WARNING, + coap_log(LOG_DEBUG, "coap_add_option: options are not in correct order\n"); return coap_insert_option(pdu, type, len, data); }