tests: Don't print Hostname on every test connection (#12782)

These lines are a significant fraction of the total log size of the
regression tests. And it seems very uninteresting, it's always
'localhost' in local tests.
This commit is contained in:
Heikki Linnakangas
2025-07-30 22:56:22 +03:00
committed by GitHub
parent e470997627
commit 81ddd10be6

View File

@@ -262,7 +262,6 @@ class PgProtocol:
# pooler does not support statement_timeout
# Check if the hostname contains the string 'pooler'
hostname = result.get("host", "")
log.info(f"Hostname: {hostname}")
options = result.get("options", "")
if "statement_timeout" not in options and "pooler" not in hostname:
options = f"-cstatement_timeout=120s {options}"