diff --git a/src/main.rs b/src/main.rs index bcce08c..bc1a428 100644 --- a/src/main.rs +++ b/src/main.rs @@ -85,11 +85,6 @@ pub mod util; const MAX_MEMORY_ALLOCATION_SIZE_ENV_KEY: &str = "MAX_MEMORY_ALLOCATION_LIMIT_SIZE"; fn main() -> Result<()> { - info!( - "Riffle is built on the git commit hash: {}", - env!("GIT_COMMIT_HASH") - ); - setup_max_memory_allocation(); let args_match = App::new("Riffle") @@ -114,6 +109,11 @@ fn main() -> Result<()> { #[cfg(feature = "logforth")] let _guard = LogService::init(&config.log); + info!( + "Riffle is built on the git commit hash: {}", + env!("GIT_COMMIT_HASH") + ); + init_global_variable(&config); info!("The specified config show as follows: \n {:#?}", config);