Skip to content

Commit

Permalink
fix: Log warning if provided high client init timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed May 8, 2024
1 parent 4018f80 commit 9ace49b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ldclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ def __init__(self, config: Config, start_wait: float=5):
self._update_processor.start()

if start_wait > 0 and not self._config.offline and not self._config.use_ldd:
if start_wait > 60:
log.warning(f"LDClient instantiated with high timeout parameter {start_wait}")

log.info("Waiting up to " + str(start_wait) + " seconds for LaunchDarkly client to initialize...")
update_processor_ready.wait(start_wait)

Expand Down

0 comments on commit 9ace49b

Please sign in to comment.