From 5c1613bc7998f1d280da3ab09576dfc86b1ce6ba Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 14 Sep 2022 19:54:36 +0530 Subject: [PATCH] Agent: Add log statement when sending Agent events to Island --- monkey/infection_monkey/agent_event_forwarder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monkey/infection_monkey/agent_event_forwarder.py b/monkey/infection_monkey/agent_event_forwarder.py index 55733601b..a23b16df1 100644 --- a/monkey/infection_monkey/agent_event_forwarder.py +++ b/monkey/infection_monkey/agent_event_forwarder.py @@ -85,6 +85,7 @@ class BatchingAgentEventForwarder: events.append(self._queue.get(block=False)) try: + logger.debug(f"Sending events to Island at {self._server_address}: {events}") requests.post( # noqa: DUO123 EVENTS_API_URL % (self._server_address,), json=events,