Commit c2246c7b authored by Hanspeter Portner's avatar Hanspeter Portner

add cmake option for verbose lws log.

parent 00611e00
Pipeline #4438910 passed with stages
in 15 minutes and 44 seconds
......@@ -58,11 +58,16 @@ include(CMakeDependentOption)
option(BUILD_SIMPLE_UI "Build simple external UI" OFF)
option(BUILD_WEB_UI "Build web-based external UI" ON)
option(USE_MANUAL_GC "Use manual garbage collection" OFF)
option(USE_VERBOSE_LOG "Use verbose log for websocket" ON)
if(USE_MANUAL_GC)
add_definitions("-DUSE_MANUAL_GC")
endif()
if(USE_VERBOSE_LOG)
add_definitions("-DUSE_VERBOSE_LOG")
endif()
if(BUILD_SIMPLE_UI)
add_library(moony_simple MODULE
ui/moony_simple.c
......
......@@ -1092,8 +1092,11 @@ instantiate(const LV2UI_Descriptor *descriptor, const char *plugin_uri,
ui->controller = controller;
// LWS
#if defined(USE_VERBOSE_LOG)
lws_set_log_level( (1 << LLL_COUNT) - 1, NULL);
#else
lws_set_log_level(0, NULL);
//lws_set_log_level( (1 << LLL_COUNT) - 1, NULL);
#endif
struct lws_context_creation_info info;
memset(&info, 0x0, sizeof(info));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment