Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into extra-rw-container
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges authored Jun 15, 2023
2 parents 6b45dda + 630b083 commit 6ec83ae
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/agent/onefuzz-telemetry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {{
Expand Down Expand Up @@ -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());
}
}};
}
Expand Down

0 comments on commit 6ec83ae

Please sign in to comment.