Skip to content

Commit

Permalink
Merge pull request #170 from broadinstitute/ea-fix-bard-url
Browse files Browse the repository at this point in the history
* SCP-2796 Fix URL for Bard
  • Loading branch information
knapii-developments authored Nov 13, 2020
2 parents fe1897a + 4dab1ae commit 147385c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingest/monitoring/metrics_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def log(cls, event_name, props={}):
def post_event(props):
try:
r = requests.post(
MetricsService.BARD_HOST_URL,
f"{MetricsService.BARD_HOST_URL}/api/event",
headers={"content-type": "application/json"},
data=props,
)
Expand All @@ -57,6 +57,6 @@ def post_event(props):
MetricsService.dev_logger.exception(e)
except requests.exceptions.RequestException as e:
# Catastrophic error
MetricsService.dev_logger.critcal(e)
MetricsService.dev_logger.exception(e)
except Exception as e:
MetricsService.dev_logger.exception(e)

0 comments on commit 147385c

Please sign in to comment.