diff --git a/agent/src/smart_agent.rs b/agent/src/smart_agent.rs index 47f18c9..1f6fcf0 100644 --- a/agent/src/smart_agent.rs +++ b/agent/src/smart_agent.rs @@ -218,8 +218,10 @@ impl SmartAgent { /// Send individual metric data via ZMQ async fn send_metric_data(&self, agent_type: &AgentType, data: &serde_json::Value) { - if let Err(e) = self.send_metrics(agent_type, data).await { - error!("Failed to send {} metrics: {}", format!("{:?}", agent_type), e); + info!("Sending {} metric data: {}", format!("{:?}", agent_type), data); + match self.send_metrics(agent_type, data).await { + Ok(()) => info!("Successfully sent {} metrics via ZMQ", format!("{:?}", agent_type)), + Err(e) => error!("Failed to send {} metrics: {}", format!("{:?}", agent_type), e), } }