From 7f55fabfec3d0fb55e8340e95f502890c98c68ef Mon Sep 17 00:00:00 2001 From: ryuukk <44361234+ryuukk@users.noreply.github.com> Date: Tue, 21 Dec 2021 01:34:48 +0100 Subject: [PATCH] Closed WS connection is not an error for the logger --- src/ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ws.c b/src/ws.c index eb335d02..1f0c01e8 100644 --- a/src/ws.c +++ b/src/ws.c @@ -173,7 +173,7 @@ static void mg_ws_cb(struct mg_connection *c, int ev, void *ev_data, if (final) mg_call(c, MG_EV_WS_MSG, &m); break; case WEBSOCKET_OP_CLOSE: - LOG(LL_ERROR, ("%lu Got WS CLOSE", c->id)); + LOG(LL_DEBUG, ("%lu Got WS CLOSE", c->id)); mg_call(c, MG_EV_WS_CTL, &m); c->is_closing = 1; break;