Showing error message

This commit is contained in:
Sergey Lyubka 2012-10-12 14:28:35 +01:00
parent 5157bd0960
commit b39426dbf7

View File

@ -346,6 +346,9 @@ static void *event_handler(enum mg_event event,
// try to serve the request.
processed = NULL;
}
} else if (event == MG_EVENT_LOG) {
printf("%s\n", (const char *) mg_get_request_info(conn)->ev_data);
processed = NULL;
} else {
processed = NULL;
}