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

logging: reduce serving logs

This commit is contained in:
Andy Green 2020-11-25 07:42:07 +00:00
parent 7d355912c3
commit 4343182002
4 changed files with 10 additions and 8 deletions

View file

@ -294,7 +294,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
case LWS_CALLBACK_HTTP_BODY_COMPLETION:
#if defined(LWS_WITH_HTTP_PROXY)
if (wsi->child_list) {
lwsl_user("%s: LWS_CALLBACK_HTTP_BODY_COMPLETION: %d\n", __func__, (int)len);
lwsl_info("%s: LWS_CALLBACK_HTTP_BODY_COMPLETION: %d\n", __func__, (int)len);
break;
}
#endif
@ -308,7 +308,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
#if defined(LWS_WITH_HTTP_PROXY)
case LWS_CALLBACK_HTTP_BODY:
if (wsi->child_list) {
lwsl_user("%s: LWS_CALLBACK_HTTP_BODY: stashing %d\n", __func__, (int)len);
lwsl_info("%s: LWS_CALLBACK_HTTP_BODY: stashing %d\n", __func__, (int)len);
if (lws_buflist_append_segment(&wsi->http.buflist_post_body, in, len) < 0)
return -1;
lws_callback_on_writable(wsi->child_list);
@ -790,7 +790,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
lwsl_notice("LWS_CALLBACK_CGI_STDIN_DATA: "
"sent %d only %d went", n, args->len);
lwsl_notice("%s: proxied %d bytes\n", __func__, n);
lwsl_info("%s: proxied %d bytes\n", __func__, n);
if (wsi->http.cgi->post_in_expected && args->stdwsi[LWS_STDIN] &&
args->stdwsi[LWS_STDIN]->desc.filefd > 0) {
@ -807,7 +807,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
* if no content-length)...
*/
lwsl_notice("%s: expected POST in end: "
lwsl_info("%s: expected POST in end: "
"closing stdin wsi %p, fd %d\n",
__func__, siwsi,
siwsi->desc.sockfd);

View file

@ -621,7 +621,9 @@ post_hpack_recode:
lwsl_debug("%s: freed cgi headers\n", __func__);
if (wsi->http.cgi->post_in_expected) {
lwsl_notice("%s: post data still expected, asking for writeable\n", __func__);
lwsl_info("%s: post data still expected, "
"asking for writeable\n",
__func__);
lws_callback_on_writable(wsi);
}

View file

@ -47,7 +47,7 @@ rops_handle_POLLIN_cgi(struct lws_context_per_thread *pt, struct lws *wsi,
}
if (!wsi->parent) {
lwsl_notice("%s: stdwsi content with parent\n",
lwsl_debug("%s: stdwsi content with parent\n",
__func__);
return LWS_HPI_RET_HANDLED;

View file

@ -145,7 +145,7 @@ lws_urldecode_s_create(struct lws_spa *spa, struct lws *wsi, char *out,
s->mime_boundary[m++] = *p++;
s->mime_boundary[m] = '\0';
lwsl_notice("boundary '%s'\n", s->mime_boundary);
// lwsl_notice("boundary '%s'\n", s->mime_boundary);
}
}
}
@ -598,7 +598,7 @@ lws_spa_create_via_info(struct lws *wsi, const lws_spa_create_info_t *i)
goto bail5;
}
lwsl_notice("%s: Created SPA %p\n", __func__, spa);
// lwsl_notice("%s: Created SPA %p\n", __func__, spa);
return spa;