mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
fix config section info
This commit is contained in:
parent
336972316e
commit
39662fc680
4 changed files with 5 additions and 5 deletions
|
@ -146,7 +146,7 @@ class Application(ApplicationPartDelete, ApplicationPartHead,
|
||||||
if self._response_content_on_debug:
|
if self._response_content_on_debug:
|
||||||
logger.debug("Response content:\n%s", answer)
|
logger.debug("Response content:\n%s", answer)
|
||||||
else:
|
else:
|
||||||
logger.debug("Response content: suppressed by config/option [auth] response_content_on_debug")
|
logger.debug("Response content: suppressed by config/option [logging] response_content_on_debug")
|
||||||
headers["Content-Type"] += "; charset=%s" % self._encoding
|
headers["Content-Type"] += "; charset=%s" % self._encoding
|
||||||
answer = answer.encode(self._encoding)
|
answer = answer.encode(self._encoding)
|
||||||
accept_encoding = [
|
accept_encoding = [
|
||||||
|
@ -196,7 +196,7 @@ class Application(ApplicationPartDelete, ApplicationPartHead,
|
||||||
logger.debug("Request header:\n%s",
|
logger.debug("Request header:\n%s",
|
||||||
pprint.pformat(self._scrub_headers(environ)))
|
pprint.pformat(self._scrub_headers(environ)))
|
||||||
else:
|
else:
|
||||||
logger.debug("Request header: suppressed by config/option [auth] request_header_on_debug")
|
logger.debug("Request header: suppressed by config/option [logging] request_header_on_debug")
|
||||||
|
|
||||||
# SCRIPT_NAME is already removed from PATH_INFO, according to the
|
# SCRIPT_NAME is already removed from PATH_INFO, according to the
|
||||||
# WSGI specification.
|
# WSGI specification.
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ApplicationBase:
|
||||||
logger.debug("Response content:\n%s",
|
logger.debug("Response content:\n%s",
|
||||||
xmlutils.pretty_xml(xml_content))
|
xmlutils.pretty_xml(xml_content))
|
||||||
else:
|
else:
|
||||||
logger.debug("Response content: suppressed by config/option [auth] response_content_on_debug")
|
logger.debug("Response content: suppressed by config/option [logging] response_content_on_debug")
|
||||||
f = io.BytesIO()
|
f = io.BytesIO()
|
||||||
ET.ElementTree(xml_content).write(f, encoding=self._encoding,
|
ET.ElementTree(xml_content).write(f, encoding=self._encoding,
|
||||||
xml_declaration=True)
|
xml_declaration=True)
|
||||||
|
|
|
@ -150,7 +150,7 @@ class ApplicationPartPut(ApplicationBase):
|
||||||
if self._log_bad_put_request_content:
|
if self._log_bad_put_request_content:
|
||||||
logger.warning("Bad PUT request content of %r:\n%s", path, content)
|
logger.warning("Bad PUT request content of %r:\n%s", path, content)
|
||||||
else:
|
else:
|
||||||
logger.debug("Bad PUT request content: suppressed by config/option [auth] bad_put_request_content")
|
logger.debug("Bad PUT request content: suppressed by config/option [logging] bad_put_request_content")
|
||||||
return httputils.BAD_REQUEST
|
return httputils.BAD_REQUEST
|
||||||
(prepared_items, prepared_tag, prepared_write_whole_collection,
|
(prepared_items, prepared_tag, prepared_write_whole_collection,
|
||||||
prepared_props, prepared_exc_info) = prepare(
|
prepared_props, prepared_exc_info) = prepare(
|
||||||
|
|
|
@ -146,7 +146,7 @@ def read_request_body(configuration: "config.Configuration",
|
||||||
if configuration.get("logging", "request_content_on_debug"):
|
if configuration.get("logging", "request_content_on_debug"):
|
||||||
logger.debug("Request content:\n%s", content)
|
logger.debug("Request content:\n%s", content)
|
||||||
else:
|
else:
|
||||||
logger.debug("Request content: suppressed by config/option [auth] request_content_on_debug")
|
logger.debug("Request content: suppressed by config/option [logging] request_content_on_debug")
|
||||||
return content
|
return content
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue