SUBSYS(heartbeatmap, 1, 5)
SUBSYS(perfcounter, 1, 5)
SUBSYS(rgw, 1, 5) // log level for the Rados gateway
+SUBSYS(civetweb, 1, 10)
SUBSYS(javaclient, 1, 5)
SUBSYS(asok, 1, 5)
SUBSYS(throttle, 1, 1)
rgw/rgw_swift_auth.cc \
rgw/rgw_loadgen.cc \
rgw/rgw_civetweb.cc \
+ rgw/rgw_civetweb_log.cc \
civetweb/src/civetweb.c \
rgw/rgw_main.cc
radosgw_CFLAGS = -Icivetweb/include
rgw/rgw_bucket.h \
rgw/rgw_keystone.h \
rgw/rgw_civetweb.h \
+ rgw/rgw_civetweb_log.h \
civetweb/civetweb.h \
civetweb/include/civetweb.h \
civetweb/src/md5.h
--- /dev/null
+#include "common/config.h"
+#include "rgw_common.h"
+
+#include "civetweb/civetweb.h"
+
+#define dout_subsys ceph_subsys_civetweb
+
+
+int rgw_civetweb_log_callback(const struct mg_connection *conn, const char *buf) {
+ dout(10) << "civetweb: " << (void *)conn << ": " << buf << dendl;
+ return 0;
+}
+
+
--- /dev/null
+#ifndef CEPH_RGW_CIVETWEB_LOG_H
+#define CEPH_RGW_CIVETWEB_LOG_H
+
+int rgw_civetweb_log_callback(const struct mg_connection *conn, const char *buf);
+
+#endif
#include "rgw_resolve.h"
#include "rgw_loadgen.h"
#include "rgw_civetweb.h"
+#include "rgw_civetweb_log.h"
#include "civetweb/civetweb.h"
struct mg_callbacks cb;
memset((void *)&cb, 0, sizeof(cb));
cb.begin_request = civetweb_callback;
+ cb.log_message = rgw_civetweb_log_callback;
ctx = mg_start(&cb, &env, (const char **)&options);
if (!ctx) {