]>
Commit | Line | Data |
---|---|---|
11fdf7f2 | 1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
9f95a23c | 2 | // vim: ts=8 sw=2 smarttab ft=cpp |
11fdf7f2 | 3 | |
7c673cae FG |
4 | #include "common/config.h" |
5 | #include "rgw_common.h" | |
6 | ||
7 | #include "civetweb/civetweb.h" | |
8 | #include "rgw_crypt_sanitize.h" | |
9 | ||
10 | #define dout_subsys ceph_subsys_civetweb | |
11 | ||
12 | ||
13 | #define dout_context g_ceph_context | |
14 | int rgw_civetweb_log_callback(const struct mg_connection *conn, const char *buf) { | |
15 | dout(0) << "civetweb: " << (void *)conn << ": " << rgw::crypt_sanitize::log_content(buf) << dendl; | |
16 | return 0; | |
17 | } | |
18 | ||
19 | int rgw_civetweb_log_access_callback(const struct mg_connection *conn, const char *buf) { | |
20 | dout(1) << "civetweb: " << (void *)conn << ": " << rgw::crypt_sanitize::log_content(buf) << dendl; | |
21 | return 0; | |
22 | } | |
23 | ||
24 |