Skip to content

Commit

Permalink
more debugging
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 4bdc8d3 commit 54110ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/host_tools/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def emit_raw_emf(emf_msg: dict):
emf_endpoint = urlparse(os.environ["AWS_EMF_AGENT_ENDPOINT"])
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock:
print(json.dumps(emf_msg), emf_endpoint.hostname, emf_endpoint.port)
sock.sendto(
(json.dumps(emf_msg) + "\n").encode("utf-8"),
(emf_endpoint.hostname, emf_endpoint.port),
print(
sock.sendto(
(json.dumps(emf_msg) + "\n").encode("utf-8"),
(emf_endpoint.hostname, emf_endpoint.port),
)
)

0 comments on commit 54110ce

Please sign in to comment.