]>
git.proxmox.com Git - ceph.git/blob - 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
4 #include "common/config.h"
5 #include "rgw_common.h"
7 #include "civetweb/civetweb.h"
8 #include "rgw_crypt_sanitize.h"
10 #define dout_subsys ceph_subsys_civetweb
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
;
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
;