Use int debug level

This commit is contained in:
Sergey Lyubka committed 2022-08-01 11:19:32 +01:00
1 parent 581a0698af
commit a468f58128
42 files changed
+89 -114

No files matched your search

+2 -2
View File
@@ -79,8 +79,8 @@ int main(void) {
struct mg_mgr mgr; // Event manager
struct mg_connection *c;
mg_log_set("2"); // Set to 0 to disable debug
mg_mgr_init(&mgr); // Initialize event manager
mg_log_set(MG_LL_DEBUG); // Set log level
mg_mgr_init(&mgr); // Initialize event manager
mg_timer_add(&mgr, 15000, MG_TIMER_REPEAT | MG_TIMER_RUN_NOW, timer_fn,
&mgr); // Init timer for demo purposes, 15s
c = mg_listen(&mgr, s_lsn, sfn, NULL); // Create server connection