From: Atul Agarwal Date: Mon, 18 Oct 2021 17:22:58 +0000 (+0000) Subject: Resolved bug 1685 - POL hangs waiting for webhook response X-Git-Tag: release-v11.0-start~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=46e7efd5d078a9a9b6dabfe161fd266af4e6d349;p=osm%2FPOL.git Resolved bug 1685 - POL hangs waiting for webhook response Change-Id: Id0c3154491545c177ec3fb74aa82ad71acabdaf6 Signed-off-by: Atul Agarwal --- diff --git a/osm_policy_module/alarming/service.py b/osm_policy_module/alarming/service.py index b93dba7..13433ba 100644 --- a/osm_policy_module/alarming/service.py +++ b/osm_policy_module/alarming/service.py @@ -27,7 +27,7 @@ import json import logging import requests -from requests.exceptions import ConnectionError +from requests.exceptions import ConnectionError, RequestException from osm_policy_module.common.common_db_client import CommonDbClient from osm_policy_module.common.lcm_client import LcmClient @@ -235,6 +235,9 @@ class AlarmingService: ) try: requests.post(url=action.url, json=json.dumps(payload)) + except RequestException as e: + log.info("Error connecting to url %s", action.url) + log.debug("RequestException %s", e) except ConnectionError: log.exception("Error connecting to url %s", action.url)