]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add 'rgw_access' log subsys for frontend http access log 46172/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 5 May 2022 15:36:34 +0000 (11:36 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 8 Jun 2022 15:12:52 +0000 (11:12 -0400)
this allows the log level of this http access log to be configured
separately from the 'rgw' subsystem, though the defaults are the same

Fixes: https://tracker.ceph.com/issues/54405
Signed-off-by: Casey Bodley <cbodley@redhat.com>
PendingReleaseNotes
src/common/subsys.h
src/rgw/rgw_asio_frontend.cc

index b6bb34ea75ef28d8ed0ac02ff72d60514a47db01..e5ae265d97928c2a58d13d12cb201e3ab47cfab5 100644 (file)
@@ -43,6 +43,9 @@
   * system
   * truncated
   * user_stats_sync
+* RGW: The beast frontend's HTTP access log line uses a new debug_rgw_access
+  configurable. This has the same defaults as debug_rgw, but can now be controlled
+  independently.
 
 >=17.2.1
 
index 7155ca7c3d5f45db8b7fff8cc3b9d360c1ba7341..a1d95722b304cfb0e5bd73d05deb36807e50d20e 100644 (file)
@@ -61,6 +61,7 @@ SUBSYS(perfcounter, 1, 5)
 SUBSYS(rgw, 1, 5)                 // log level for the Rados gateway
 SUBSYS(rgw_sync, 1, 5)
 SUBSYS(rgw_datacache, 1, 5)
+SUBSYS(rgw_access, 1, 5)
 SUBSYS(javaclient, 1, 5)
 SUBSYS(asok, 1, 5)
 SUBSYS(throttle, 1, 1)
index 2d6e3a3259eed9973972621839c4221f34542b1e..5bd6bd1adc176f579ac5eba28cc20a20c37803e4 100644 (file)
@@ -273,7 +273,7 @@ void handle_connection(boost::asio::io_context& context,
 
       if (cct->_conf->subsys.should_gather(dout_subsys, 1)) {
         // access log line elements begin per Apache Combined Log Format with additions following
-        ldout(cct, 1) << "beast: " << std::hex << &req << std::dec << ": "
+        lsubdout(cct, rgw_access, 1) << "beast: " << std::hex << &req << std::dec << ": "
             << remote_endpoint.address() << " - " << user << " [" << log_apache_time{started} << "] \""
             << message.method_string() << ' ' << message.target() << ' '
             << http_version{message.version()} << "\" " << http_ret << ' '