Skip to content

Commit 97326de

Browse files
authored
Merge pull request #1217 from vespa-engine/thomasht86/do-no-print-error
do not print to stderr on conn-error
2 parents df1c4e3 + 76830b6 commit 97326de

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

vespa/application.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,17 +1529,9 @@ def _request_with_retry(self, method: str, url: str, json_data=None, **kwargs):
15291529
# Check if it's a connection/network error that should be retried
15301530
# This includes httpr.RequestError, httpr.ConnectError, ConnectionResetError, and other network errors
15311531
if _is_connection_error(e) and attempt < self.num_retries_429:
1532-
print(
1533-
f"Connection error on attempt {attempt}: {type(e).__name__}",
1534-
file=sys.stderr,
1535-
)
15361532
wait_time = 0.1 * 1.618**attempt + random.uniform(0, 1)
15371533
time.sleep(wait_time)
15381534
elif _is_connection_error(e):
1539-
print(
1540-
f"Connection error on attempt {attempt}: {type(e).__name__}",
1541-
file=sys.stderr,
1542-
)
15431535
raise
15441536
else:
15451537
# Not a connection error, re-raise immediately

0 commit comments

Comments
 (0)