]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_civetweb_log.cc
import 15.2.0 Octopus source
[ceph.git] / ceph / src / rgw / rgw_civetweb_log.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab ft=cpp
3
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