Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / rgw / rgw_civetweb_log.cc
1 #include "common/config.h"
2 #include "rgw_common.h"
3
4 #include "civetweb/civetweb.h"
5 #include "rgw_crypt_sanitize.h"
6
7 #define dout_subsys ceph_subsys_civetweb
8
9
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;
13   return 0;
14 }
15
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;
18   return 0;
19 }
20
21