mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 14:32:50 +02:00
Compare commits
3 commits
22927091a1
...
a0610fd11f
Author | SHA1 | Date | |
---|---|---|---|
|
a0610fd11f |
||
|
9bf6faa784 |
||
|
6e0816e326 |
2 changed files with 7 additions and 6 deletions
|
@ -79,12 +79,12 @@ fn main() {
|
||||||
|
|
||||||
// --- Rerun Triggers ---
|
// --- Rerun Triggers ---
|
||||||
// TODO: The git rerun triggers seem to always run
|
// TODO: The git rerun triggers seem to always run
|
||||||
// Rerun if the git HEAD changes
|
// // Rerun if the git HEAD changes
|
||||||
println!("cargo:rerun-if-changed=.git/HEAD");
|
// println!("cargo:rerun-if-changed=.git/HEAD");
|
||||||
// Rerun if the ref pointed to by HEAD changes (e.g., new commit on branch)
|
// // 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"]) {
|
// if let Some(ref_path) = run_git_command(&["symbolic-ref", "--quiet", "HEAD"])
|
||||||
println!("cargo:rerun-if-changed=.git/{ref_path}");
|
// { 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");
|
||||||
println!("cargo:rerun-if-env-changed=GIT_COMMIT_HASH_SHORT");
|
println!("cargo:rerun-if-env-changed=GIT_COMMIT_HASH_SHORT");
|
||||||
|
|
|
@ -47,6 +47,7 @@ pub(crate) fn init(
|
||||||
// subscriber for it
|
// subscriber for it
|
||||||
#[cfg(all(target_family = "unix", feature = "journald"))]
|
#[cfg(all(target_family = "unix", feature = "journald"))]
|
||||||
if config.log_to_journald {
|
if config.log_to_journald {
|
||||||
|
println!("Initialising journald logging");
|
||||||
if let Err(e) = init_journald_logging(config) {
|
if let Err(e) = init_journald_logging(config) {
|
||||||
eprintln!("Failed to initialize journald logging: {e}");
|
eprintln!("Failed to initialize journald logging: {e}");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue