From dfb932a44859dc9382db1e90c65c081d767d3d2d Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Wed, 10 Dec 2025 17:48:05 +0100 Subject: [PATCH] new options [logging] profiling_per_request_header profiling_per_request_xml --- DOCUMENTATION.md | 16 ++++++++++++++++ config | 6 ++++++ radicale/config.py | 8 ++++++++ 3 files changed, 30 insertions(+) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 0f03668f..0a8760df 100644 --- a/DOCUMENTATION.md +++ b/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)_ diff --git a/config b/config index 91b12e0f..75a314e8 100644 --- a/config +++ b/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 diff --git a/radicale/config.py b/radicale/config.py index e4af0a8f..abe7e465 100644 --- a/radicale/config.py +++ b/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)",