mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-09 02:32:53 +03:00
coap_gnutls.c: Report Close notify at LOG_DEBUG, not LOG_WARNING
Reduce the level of reporting of Close notify alerts for default logging levels.
This commit is contained in:
1 parent
4ca959ca53
commit
2f81b94603
1 file changed
+6
-2
+6
-2
@@ -1691,8 +1691,12 @@ void *coap_dtls_new_server_session(coap_session_t *c_session) {
|
||||
static void log_last_alert(gnutls_session_t g_session) {
|
||||
int last_alert = gnutls_alert_get(g_session);
|
||||
|
||||
coap_log(LOG_WARNING, "Received alert '%d': '%s'\n",
|
||||
last_alert, gnutls_alert_get_name(last_alert));
|
||||
if (last_alert == GNUTLS_A_CLOSE_NOTIFY)
|
||||
coap_log(LOG_DEBUG, "Received alert '%d': '%s'\n",
|
||||
last_alert, gnutls_alert_get_name(last_alert));
|
||||
else
|
||||
coap_log(LOG_WARNING, "Received alert '%d': '%s'\n",
|
||||
last_alert, gnutls_alert_get_name(last_alert));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user