Handle the civetweb log_message callback, divert messages into our debug
log.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
return 1;
}
+static int civetweb_log_callback(const struct mg_connection *conn, const char *buf) {
+ dout(10) << "civetweb: " << (void *)conn << ": " << buf << dendl;
+ return 0;
+}
+
#ifdef HAVE_CURL_MULTI_WAIT
static void check_curl()
{
struct mg_callbacks cb;
memset((void *)&cb, 0, sizeof(cb));
cb.begin_request = civetweb_callback;
+ cb.log_message = civetweb_log_callback;
ctx = mg_start(&cb, &env, (const char **)&options);
if (!ctx) {