mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-01 13:10:43 +00:00
Use int debug level
This commit is contained in:
1 parent
581a0698af
commit
a468f58128
42 files changed
+89
-114
No files matched your search
@@ -35,7 +35,7 @@ int main(void) {
|
||||
bool done = false; // Event handler flips it to true
|
||||
struct mg_connection *c; // Client connection
|
||||
mg_mgr_init(&mgr); // Initialise event manager
|
||||
mg_log_set("4");
|
||||
mg_log_set(MG_LL_DEBUG); // Set log level
|
||||
c = mg_ws_connect(&mgr, s_url, fn, &done, NULL); // Create client
|
||||
while (c && done == false) mg_mgr_poll(&mgr, 1000); // Wait for echo
|
||||
mg_mgr_free(&mgr); // Deallocate resources
|
||||
|
||||
Reference in new issue
Block a user