mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-14 12:19:43 +03:00
Merge pull request #556 from mrdeep1/gnutls_alert_close_notify
coap_gnutls.c: Report Close notify at LOG_DEBUG, not LOG_WARNING
This commit is contained in:
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