diff --git a/communicator.py b/communicator.py index 33bcf2b..8c738da 100644 --- a/communicator.py +++ b/communicator.py @@ -57,7 +57,8 @@ class Communicator: LOGGER.info(f"List of currently available consumers: {json}") return json except Exception as e: - LOGGER.exception(e) + LOGGER.error("Could not query available consumer list!") + #LOGGER.exception(e) return [] def isconsumeravailable(self) -> bool: @@ -70,7 +71,7 @@ class Communicator: response = requests.get(f'http://{currentconsumer}/consumers', timeout=5) isavailable = response.status_code == 200 except Exception as e: - LOGGER.exception(e) + #LOGGER.exception(e) isavailable = False LOGGER.info(f"Current consumer availability: {isavailable}") return isavailable @@ -85,7 +86,7 @@ class Communicator: response = requests.get(f'http://{consumer}/consumers', timeout=5) isavailable = response.status_code == 200 except Exception as e: - LOGGER.exception(e) + #LOGGER.exception(e) isavailable = False LOGGER.info(f"Consumer {consumer} availability: {isavailable}") return isavailable