[issue46200] Discourage logging f-strings due to security considerations
Raymond Hettinger
report at bugs.python.org
Thu Feb 3 16:40:34 EST 2022
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
In a favor of deferred substitution, the cookbook should have a recipe where substituted messages are logged to a file and the unsubstituted message stored in SQLite3 database with the parameters stored as JSON. This gives both human readable output and queryable, preparsed data for automated analysis.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46200>
_______________________________________
More information about the Python-bugs-list
mailing list