Przeglądaj źródła

new options [logging] profiling_per_request_header profiling_per_request_xml

Peter Bieringer 2 miesięcy temu
rodzic
commit
dfb932a448
3 zmienionych plików z 30 dodań i 0 usunięć
  1. 16 0
      DOCUMENTATION.md
  2. 6 0
      config
  3. 8 0
      radicale/config.py

+ 16 - 0
DOCUMENTATION.md

@@ -1719,6 +1719,22 @@ Log profiling data per request minimum duration (seconds) before logging, otherw
 
 Default: `3`
 
+##### profiling_per_request_header
+
+_(>= 3.5.10)_
+
+Log profiling request header (if passing minimum duration)
+
+Default: `False`
+
+##### profiling_per_request_xml
+
+_(>= 3.5.10)_
+
+Log profiling request XML (if passing minimum duration)
+
+Default: `False`
+
 ##### profiling_per_request_method_interval
 
 _(>= 3.5.10)_

+ 6 - 0
config

@@ -331,6 +331,12 @@
 # Log profiling data per request minimum duration (seconds)
 #profiling_per_request_min_duration = 3
 
+# Log profiling request header (if passing minimum duration)
+#profiling_per_request_header = False
+
+# Log profiling request XML (if passing minimum duration)
+#profiling_per_request_xml = False
+
 # Log profiling data per request method interval (seconds)
 #profiling_per_request_method_interval = 600
 

+ 8 - 0
radicale/config.py

@@ -601,6 +601,14 @@ This is an automated message. Please do not reply.""",
             "value": "3",
             "help": "log profiling data per request minimum duration (seconds)",
             "type": int}),
+        ("profiling_per_request_header", {
+            "value": "False",
+            "help": "Log profiling request body (if passing minimum duration)",
+            "type": bool}),
+        ("profiling_per_request_xml", {
+            "value": "False",
+            "help": "Log profiling request XML (if passing minimum duration)",
+            "type": bool}),
         ("profiling_per_request_method_interval", {
             "value": "600",
             "help": "log profiling data per request method interval (seconds)",