Files
tryton/trytond/doc/ref/tools/logging.rst
T
Cédric Krier 4242486e90 Redact sensitive values from the log
Closes #14220
(grafted from 252e508b7072b4a6f9480a5a063088cbca8280a6)

--HG--
branch : 7.0
2025-09-14 02:43:33 +02:00

21 lines
736 B
ReStructuredText

.. _ref-tools-logging:
.. module:: trytond.tools.logging
logging
=======
.. class:: format_args(args, kwargs[, verbose[, max_args[, max_items]]])
If ``verbose`` is False, the string representation of this class is a
shortened version of the arguments taken from ``args`` and from the keyword
arguments in ``kwargs``. Otherwise, they are fully represented.
``max_args`` is the maximum number of arguments shown before using an ellipse.
``max_items`` is the maximum number of items shown in each argument before
using an ellipse.
In the shortened version, strings and bytes are shortened.
The values of mapping using a sensitive name containing ``password``,
``token`` and ``secret`` are always redacted.