feat: include version number in response headers and on application startup (#3045)

This commit is contained in:
Sanchith Hegde
2024-01-05 17:32:36 +05:30
committed by GitHub
parent c8279b110e
commit 252443a50d
6 changed files with 30 additions and 4 deletions

View File

@ -20,6 +20,9 @@ async fn main() -> DrainerResult<()> {
let shutdown_intervals = conf.drainer.shutdown_interval;
let loop_interval = conf.drainer.loop_interval;
#[cfg(feature = "vergen")]
println!("Starting drainer (Version: {})", router_env::git_tag!());
let _guard = router_env::setup(
&conf.log,
router_env::service_name!(),