Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit b0458cc

Browse files
author
boris
committed
Add logger
1 parent b1f9957 commit b0458cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google/api_core/retry.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ def exponential_sleep_generator(initial, maximum, multiplier=_DEFAULT_DELAY_MULT
141141
"""
142142
delay = initial
143143
while True:
144+
_LOGGER.debug(
145+
"exponential_sleep_generator initial: {:.1f}s, maximum: {:.1f}s, multipier: {:1f}s".format(initial, maximum, multiplier)
146+
)
144147
# Introduce jitter by yielding a delay that is uniformly distributed
145148
# to average out to the delay time.
146149
yield min(random.uniform(0.0, delay * 2.0), maximum)

0 commit comments

Comments
 (0)