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

clean: reduce log verbosity in various places

This commit is contained in:
Andy Green 2020-08-02 08:20:35 +01:00
parent 3b6b0b7810
commit 924bd78085
5 changed files with 9 additions and 9 deletions

View file

@ -389,7 +389,7 @@ lws_adopt_descriptor_vhost2(struct lws *new_wsi, lws_adoption_type type,
* (here) and h2 (at lws_wsi_server_new())
*/
lwsl_notice("%s: wsi %p, vhost %s ss_handle %p\n", __func__, new_wsi,
lwsl_info("%s: wsi %p, vhost %s ss_handle %p\n", __func__, new_wsi,
new_wsi->a.vhost->name, new_wsi->a.vhost->ss_handle);
if (lws_adopt_ss_server_accept(new_wsi))

View file

@ -338,7 +338,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
wsi->reason_bf &= ~LWS_CB_REASON_AUX_BF__CGI;
if (wsi->http.cgi && wsi->http.cgi->cgi_transaction_over) {
lwsl_notice("%s: txn over\n", __func__);
lwsl_info("%s: txn over\n", __func__);
return -1;
}

View file

@ -191,7 +191,7 @@ lws_spawn_reap(struct lws_spawn_piped *lsp)
*/
if (!lsp->ungraceful && lsp->pipes_alive) {
lwsl_notice("%s: %d stdwsi alive, not reaping\n", __func__,
lwsl_info("%s: %d stdwsi alive, not reaping\n", __func__,
lsp->pipes_alive);
return 0;
}
@ -218,7 +218,7 @@ lws_spawn_reap(struct lws_spawn_piped *lsp)
temp = *lsp;
n = waitid(P_PID, lsp->child_pid, &temp.si, WEXITED | WNOHANG);
temp.si.si_status &= 0xff; /* we use b8 + for flags */
lwsl_notice("%s: waitd says %d, process exit %d\n",
lwsl_info("%s: waitd says %d, process exit %d\n",
__func__, n, temp.si.si_status);
lsp->child_pid = -1;
@ -411,7 +411,7 @@ lws_spawn_piped(const struct lws_spawn_piped_info *i)
if (lws_change_pollfd(lsp->stdwsi[LWS_STDERR], LWS_POLLOUT, LWS_POLLIN))
goto bail3;
lwsl_notice("%s: fds in %d, out %d, err %d\n", __func__,
lwsl_info("%s: fds in %d, out %d, err %d\n", __func__,
lsp->stdwsi[LWS_STDIN]->desc.sockfd,
lsp->stdwsi[LWS_STDOUT]->desc.sockfd,
lsp->stdwsi[LWS_STDERR]->desc.sockfd);

View file

@ -75,7 +75,7 @@ lws_cgi_grace(lws_sorted_usec_list_t *sul)
/* act on the reap cb from earlier */
lwsl_notice("%s: wsi %p\n", __func__, cgi->wsi);
lwsl_info("%s: wsi %p\n", __func__, cgi->wsi);
if (!cgi->wsi->http.cgi->post_in_expected)
cgi->wsi->http.cgi->cgi_transaction_over = 1;
@ -94,7 +94,7 @@ lws_cgi_reap_cb(void *opaque, lws_usec_t *accounting, siginfo_t *si,
* The cgi has come to an end, by itself or with a signal...
*/
lwsl_notice("%s: wsi %p post_in_expected %d\n", __func__, wsi,
lwsl_info("%s: wsi %p post_in_expected %d\n", __func__, wsi,
(int)wsi->http.cgi->post_in_expected);
/*
@ -868,7 +868,7 @@ agin:
if (!wsi->mux_substream && m) {
uint8_t term[LWS_PRE + 6];
lwsl_notice("%s: sent trailer\n", __func__);
lwsl_info("%s: sent trailer\n", __func__);
memcpy(term + LWS_PRE, (uint8_t *)"0\x0d\x0a\x0d\x0a", 5);
if (lws_write(wsi, term + LWS_PRE, 5,

View file

@ -235,7 +235,7 @@ secstream_h1(struct lws *wsi, enum lws_callback_reasons reason, void *user,
break;
h->wsi = NULL;
lwsl_notice("a4\n");
lwsl_debug("a4\n");
if (lws_ss_backoff(h))
/* was destroyed */
return -1;