Skip to content

Commit 9ace49b

Browse files
committed
fix: Log warning if provided high client init timeout
1 parent 4018f80 commit 9ace49b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ldclient/client.py

+3
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ def __init__(self, config: Config, start_wait: float=5):
228228
self._update_processor.start()
229229

230230
if start_wait > 0 and not self._config.offline and not self._config.use_ldd:
231+
if start_wait > 60:
232+
log.warning(f"LDClient instantiated with high timeout parameter {start_wait}")
233+
231234
log.info("Waiting up to " + str(start_wait) + " seconds for LaunchDarkly client to initialize...")
232235
update_processor_ready.wait(start_wait)
233236

0 commit comments

Comments
 (0)