Skip to content

Commit 65d809b

Browse files
LaunchDarklyReleaseBotbwoskow-ldeli-darklyLaunchDarklyCIhroederld
authored
prepare 8.1.6 release (#220)
## [8.1.6] - 2023-09-06 ### Changed: - Recoverable errors are logged as a warning not an error. (Thanks, [fritzdj](#219)!) --------- Co-authored-by: Ben Woskow <[email protected]> Co-authored-by: Eli Bishop <[email protected]> Co-authored-by: LaunchDarklyCI <[email protected]> Co-authored-by: LaunchDarklyCI <[email protected]> Co-authored-by: hroederld <[email protected]> Co-authored-by: Robert J. Neal <[email protected]> Co-authored-by: Robert J. Neal <[email protected]> Co-authored-by: Ember Stevens <[email protected]> Co-authored-by: ember-stevens <[email protected]> Co-authored-by: Matthew M. Keeler <[email protected]> Co-authored-by: charukiewicz <[email protected]> Co-authored-by: LaunchDarklyReleaseBot <[email protected]> Co-authored-by: Christian Charukiewicz <[email protected]> Co-authored-by: Matthew M. Keeler <[email protected]> Co-authored-by: Ben Woskow <[email protected]> Co-authored-by: Gavin Whelan <[email protected]> Co-authored-by: Elliot <[email protected]> Co-authored-by: Gabor Angeli <[email protected]> Co-authored-by: Elliot <[email protected]> Co-authored-by: Louis Chan <[email protected]> Co-authored-by: prpnmac <[email protected]> Co-authored-by: Louis Chan <[email protected]> Co-authored-by: Daniel Fritz <[email protected]>
1 parent 66f442d commit 65d809b

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

ldclient/impl/datasource/polling.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,11 @@ def _poll(self):
3838
log.info("PollingUpdateProcessor initialized ok")
3939
self._ready.set()
4040
except UnsuccessfulResponseException as e:
41-
log.error(http_error_message(e.status, "polling request"))
42-
if not is_http_error_recoverable(e.status):
41+
http_error_message_result = http_error_message(e.status, "polling request")
42+
if is_http_error_recoverable(e.status):
43+
log.warning(http_error_message_result)
44+
else:
45+
log.error(http_error_message_result)
4346
self._ready.set() # if client is initializing, make it stop waiting; has no effect if already inited
4447
self.stop()
4548
except Exception as e:

ldclient/impl/datasource/streaming.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,14 @@ def run(self):
8383
log.info("StreamingUpdateProcessor initialized ok.")
8484
self._ready.set()
8585
except UnsuccessfulResponseException as e:
86-
log.error(http_error_message(e.status, "stream connection"))
8786
self._record_stream_init(True)
8887
self._es_started = None
89-
if not is_http_error_recoverable(e.status):
88+
89+
http_error_message_result = http_error_message(e.status, "stream connection")
90+
if is_http_error_recoverable(e.status):
91+
log.warning(http_error_message_result)
92+
else:
93+
log.error(http_error_message_result)
9094
self._ready.set() # if client is initializing, make it stop waiting; has no effect if already inited
9195
self.stop()
9296
break

0 commit comments

Comments
 (0)