diff --git a/src/agent/onefuzz-telemetry/src/lib.rs b/src/agent/onefuzz-telemetry/src/lib.rs index 9839a644e9..e8aa25d7cd 100644 --- a/src/agent/onefuzz-telemetry/src/lib.rs +++ b/src/agent/onefuzz-telemetry/src/lib.rs @@ -525,12 +525,6 @@ pub fn to_log_level(level: &appinsights::telemetry::SeverityLevel) -> log::Level } } -pub fn log_message(level: appinsights::telemetry::SeverityLevel, msg: String) { - if let Some(client) = client(ClientType::Instance) { - client.track_trace(msg, level); - } -} - #[macro_export] macro_rules! log_events { ($name: expr; $events: expr) => {{ @@ -565,7 +559,6 @@ macro_rules! log { let msg = format!("{}", format_args!($($arg)+)); log::log!(log_level, "{}", msg); onefuzz_telemetry::try_broadcast_trace(onefuzz_telemetry::Utc::now(), msg.to_string(), log_level); - onefuzz_telemetry::log_message($level, msg.to_string()); } }}; }