1 #include "common/config.h"
2 #include "rgw_common.h"
4 #include "civetweb/civetweb.h"
5 #include "rgw_crypt_sanitize.h"
7 #define dout_subsys ceph_subsys_civetweb
10 #define dout_context g_ceph_context
11 int rgw_civetweb_log_callback(const struct mg_connection *conn, const char *buf) {
12 dout(0) << "civetweb: " << (void *)conn << ": " << rgw::crypt_sanitize::log_content(buf) << dendl;
16 int rgw_civetweb_log_access_callback(const struct mg_connection *conn, const char *buf) {
17 dout(1) << "civetweb: " << (void *)conn << ": " << rgw::crypt_sanitize::log_content(buf) << dendl;