Skip to content

Commit

Permalink
fix(version): put log_build_info behind tracing flag
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverNChalk committed Sep 18, 2024
1 parent 9b821e4 commit ac7f6cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Cargo Target: {CARGO_TARGET_TRIPLE}
/// - `RUSTC_SEMVER`
/// - `RUSTC_HOST_TRIPLE`
/// - `CARGO_TARGET_TRIPLE`
#[cfg(feature = "tracing")]
#[macro_export]
macro_rules! log_build_info {
() => {{
Expand All @@ -110,6 +111,7 @@ macro_rules! log_build_info {
}};
}

#[cfg(feature = "tracing")]
#[doc(hidden)]
pub fn _log_build_info(
cargo_pkg_version: &str,
Expand All @@ -120,7 +122,7 @@ pub fn _log_build_info(
rustc_host_triple: &str,
cargo_target_triple: &str,
) {
tracing::info!(
::tracing::info!(
cargo_pkg_version,
git_sha,
git_commit_timestamp,
Expand Down

0 comments on commit ac7f6cd

Please sign in to comment.