From 9972ea266c5184b30fdb9cd02449c78b8ae8b9db Mon Sep 17 00:00:00 2001 From: Junfan Zhang Date: Thu, 16 Jan 2025 15:26:30 +0800 Subject: [PATCH] Correct log --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);