X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Frgw%2Frgw_civetweb_log.cc;fp=src%2Fceph%2Fsrc%2Frgw%2Frgw_civetweb_log.cc;h=2c2e9ccfdd351da1aa65192999825ff7bd0e20a6;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/rgw/rgw_civetweb_log.cc b/src/ceph/src/rgw/rgw_civetweb_log.cc new file mode 100644 index 0000000..2c2e9cc --- /dev/null +++ b/src/ceph/src/rgw/rgw_civetweb_log.cc @@ -0,0 +1,21 @@ +#include "common/config.h" +#include "rgw_common.h" + +#include "civetweb/civetweb.h" +#include "rgw_crypt_sanitize.h" + +#define dout_subsys ceph_subsys_civetweb + + +#define dout_context g_ceph_context +int rgw_civetweb_log_callback(const struct mg_connection *conn, const char *buf) { + dout(0) << "civetweb: " << (void *)conn << ": " << rgw::crypt_sanitize::log_content(buf) << dendl; + return 0; +} + +int rgw_civetweb_log_access_callback(const struct mg_connection *conn, const char *buf) { + dout(1) << "civetweb: " << (void *)conn << ": " << rgw::crypt_sanitize::log_content(buf) << dendl; + return 0; +} + +