From 141d3f926adf26a8265cd2deb0881061d6754675 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sun, 12 Jun 2022 14:58:34 +0800 Subject: [PATCH] Silence lws logs Set log level to 0 for SDL to handle logging. --- src/packages/game/network/IZ_wsclient.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/packages/game/network/IZ_wsclient.c b/src/packages/game/network/IZ_wsclient.c index a74d7b5..d72ff0f 100644 --- a/src/packages/game/network/IZ_wsclient.c +++ b/src/packages/game/network/IZ_wsclient.c @@ -49,6 +49,9 @@ IZ_ProcedureResult IZ_WSClientConnect(IZ_WSClient* client, IZ_WSClientConnectPar } IZ_ProcedureResult IZ_WSClientInitialize(IZ_WSClient* client, void* app) { + // TODO delegate logs to SDL + lws_set_log_level(0, NULL); + static struct lws_protocols protocols[] = { { .name = "lws-minimal-client",