diff --git a/src/build_metadata/build.rs b/src/build_metadata/build.rs index bf84d508..bfdf20b1 100644 --- a/src/build_metadata/build.rs +++ b/src/build_metadata/build.rs @@ -79,12 +79,12 @@ fn main() { // --- Rerun Triggers --- // TODO: The git rerun triggers seem to always run - // // Rerun if the git HEAD changes - // println!("cargo:rerun-if-changed=.git/HEAD"); - // // Rerun if the ref pointed to by HEAD changes (e.g., new commit on branch) - // if let Some(ref_path) = run_git_command(&["symbolic-ref", "--quiet", "HEAD"]) - // { println!("cargo:rerun-if-changed=.git/{ref_path}"); - // } + // Rerun if the git HEAD changes + println!("cargo:rerun-if-changed=.git/HEAD"); + // Rerun if the ref pointed to by HEAD changes (e.g., new commit on branch) + if let Some(ref_path) = run_git_command(&["symbolic-ref", "--quiet", "HEAD"]) { + println!("cargo:rerun-if-changed=.git/{ref_path}"); + } println!("cargo:rerun-if-env-changed=GIT_COMMIT_HASH"); println!("cargo:rerun-if-env-changed=GIT_COMMIT_HASH_SHORT"); diff --git a/src/main/logging.rs b/src/main/logging.rs index b7846edb..b3ad366b 100644 --- a/src/main/logging.rs +++ b/src/main/logging.rs @@ -47,7 +47,6 @@ pub(crate) fn init( // subscriber for it #[cfg(all(target_family = "unix", feature = "journald"))] if config.log_to_journald { - println!("Initialising journald logging"); if let Err(e) = init_journald_logging(config) { eprintln!("Failed to initialize journald logging: {e}"); }