From c4fb2cbd48f3ddc080024900eacec4e7b83b2f15 Mon Sep 17 00:00:00 2001 From: Raphael <81313171+Einliterflasche@users.noreply.github.com> Date: Tue, 20 May 2025 12:57:57 +0200 Subject: [PATCH] feat: log enviroment info (#332) --- swap/src/bin/asb.rs | 7 +++++++ swap/src/cli/api.rs | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/swap/src/bin/asb.rs b/swap/src/bin/asb.rs index fb79ad08..4d315c72 100644 --- a/swap/src/bin/asb.rs +++ b/swap/src/bin/asb.rs @@ -86,6 +86,13 @@ pub async fn main() -> Result<()> { let log_dir = config.data.dir.join("logs"); common::tracing_util::init(LevelFilter::DEBUG, format, log_dir, None) .expect("initialize tracing"); + tracing::info!( + binary = "asb", + version = env!("VERGEN_GIT_DESCRIBE"), + os = std::env::consts::OS, + arch = std::env::consts::ARCH, + "Setting up context" + ); // Check for conflicting env / config values if config.monero.network != env_config.monero_network { diff --git a/swap/src/cli/api.rs b/swap/src/cli/api.rs index 093db9ef..95195d1c 100644 --- a/swap/src/cli/api.rs +++ b/swap/src/cli/api.rs @@ -300,6 +300,13 @@ impl ContextBuilder { data_dir.join("logs"), self.tauri_handle.clone(), ); + tracing::info!( + binary = "cli", + version = env!("VERGEN_GIT_DESCRIBE"), + os = std::env::consts::OS, + arch = std::env::consts::ARCH, + "Setting up context" + ); }); // Create the data structure we use to manage the swap lock