]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: avoid explicit str() call when logging exception 785/head
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Apr 2024 12:11:22 +0000 (14:11 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Apr 2024 22:10:44 +0000 (00:10 +0200)
commit06732928d96926f0cb106030d3ac42711c7f56f0
tree2083ffa4d8b0aecd998440e5c961a1a7ef35f89c
parent0bbbe4bf02a391589c65e88601f9474191d786bd
fix: avoid explicit str() call when logging exception

This was done as paranoia check for Sentry which might uses the repr of
the exception even if we asked for `%s` and therefore might leak
secrets, but frankly it's not our responsibility.

https://github.com/getsentry/sentry-python/issues/2417
psycopg/psycopg/_connection_base.py
psycopg/psycopg/_conninfo_attempts.py
psycopg/psycopg/_conninfo_attempts_async.py
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py