CC-4910: Need to properly handle non-200 http status codes in api client
-fixed
This commit is contained in:
parent
20a3f674b4
commit
331386f74f
12 changed files with 156 additions and 156 deletions
|
@ -189,9 +189,17 @@ class Recorder(Thread):
|
|||
self.server_timezone = ''
|
||||
self.queue = q
|
||||
self.loops = 0
|
||||
self.api_client.register_component("show-recorder")
|
||||
self.logger.info("RecorderFetch: init complete")
|
||||
|
||||
success = False
|
||||
while not success:
|
||||
try:
|
||||
self.api_client.register_component('show-recorder')
|
||||
success = True
|
||||
except Exception, e:
|
||||
self.logger.error(str(e))
|
||||
time.sleep(10)
|
||||
|
||||
def handle_message(self):
|
||||
if not self.queue.empty():
|
||||
message = self.queue.get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue