1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

reduce debug logging

This commit is contained in:
Andy Green 2020-11-06 20:25:36 +00:00
parent 3bfa00de19
commit 6bc5c0ffac
2 changed files with 3 additions and 9 deletions

View file

@ -161,7 +161,6 @@ lws_role_call_adoption_bind(struct lws *wsi, int type, const char *prot)
return 0;
}
lwsl_warn("%s: adoption bind to role '%s', "
"protocol '%s', type 0x%x, failed\n", __func__,
wsi->a.vhost->listen_accept_role, prot, type);

View file

@ -1468,7 +1468,6 @@ lws_http_cookie_get(struct lws *wsi, const char *name, char *buf,
char *p, *bo = buf;
n = lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_COOKIE);
lwsl_notice("%s: cookie hdr len %d\n", __func__, n);
if (n < bl + 1)
return 1;
@ -1476,8 +1475,6 @@ lws_http_cookie_get(struct lws *wsi, const char *name, char *buf,
if (!p)
return 1;
lwsl_hexdump_notice(p, n);
p += bl;
n -= bl;
while (n-- > bl) {
@ -1517,7 +1514,7 @@ lws_jwt_get_http_cookie_validate_jwt(struct lws *wsi,
/* first use out to hold the encoded JWT */
if (lws_http_cookie_get(wsi, i->cookie_name, out, out_len)) {
lwsl_notice("%s: cookie %s not provided\n", __func__,
lwsl_debug("%s: cookie %s not provided\n", __func__,
i->cookie_name);
return 1;
}
@ -1526,7 +1523,7 @@ lws_jwt_get_http_cookie_validate_jwt(struct lws *wsi,
if (lws_jwt_signed_validate(wsi->a.context, i->jwk, i->alg, out,
*out_len, temp, sizeof(temp), out, &cml)) {
lwsl_notice("%s: jwt validation failed\n", __func__);
lwsl_info("%s: jwt validation failed\n", __func__);
return 1;
}
@ -1552,9 +1549,7 @@ lws_jwt_get_http_cookie_validate_jwt(struct lws *wsi,
if (cp)
i->extra_json = cp;
if (cp)
lwsl_hexdump_notice(cp, i->extra_json_len);
else
if (!cp)
lwsl_notice("%s: no ext JWT payload\n", __func__);
return 0;