1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00

disable lws logging

This commit is contained in:
Falk Werner 2019-02-10 15:12:14 +01:00
parent d8525f1296
commit 6782e73d3e

View File

@ -7,6 +7,7 @@
#include "wsfs/server_config.h" #include "wsfs/server_config.h"
#include "wsfs/server_protocol_intern.h" #include "wsfs/server_protocol_intern.h"
#define WSFS_DISABLE_LWS_LOG 0
#define WSFS_SERVER_PROTOCOL_COUNT 3 #define WSFS_SERVER_PROTOCOL_COUNT 3
#define WSFS_SERVER_TIMEOUT (1 * 1000) #define WSFS_SERVER_TIMEOUT (1 * 1000)
@ -30,6 +31,8 @@ static bool wsfs_server_tls_enabled(
static struct lws_context * wsfs_server_context_create( static struct lws_context * wsfs_server_context_create(
struct wsfs_server * server) struct wsfs_server * server)
{ {
lws_set_log_level(WSFS_DISABLE_LWS_LOG, NULL);
memset(server->ws_protocols, 0, sizeof(struct lws_protocols) * WSFS_SERVER_PROTOCOL_COUNT); memset(server->ws_protocols, 0, sizeof(struct lws_protocols) * WSFS_SERVER_PROTOCOL_COUNT);
server->ws_protocols[0].name = "http"; server->ws_protocols[0].name = "http";
server->ws_protocols[0].callback = lws_callback_http_dummy; server->ws_protocols[0].callback = lws_callback_http_dummy;