Skip to content

Commit

Permalink
is the environment variable even there??
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Roy <[email protected]>
  • Loading branch information
roypat committed Sep 22, 2023
1 parent 4e78e06 commit e787dfe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/host_tools/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ def get_metrics_logger():

def emit_raw_emf(emf_msg: dict):
"""Emites a raw EMF log message to the local cloudwatch agent"""
if "AWS_EMF_AGENT_ENDPOINT" not in os.environ:
return

emf_endpoint = urlparse(os.environ["AWS_EMF_AGENT_ENDPOINT"])
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock:
sock.sendto(
Expand Down

0 comments on commit e787dfe

Please sign in to comment.