feat: log enviroment info (#332)

This commit is contained in:
Raphael 2025-05-20 12:57:57 +02:00 committed by GitHub
parent 01bac41625
commit c4fb2cbd48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View file

@ -86,6 +86,13 @@ pub async fn main() -> Result<()> {
let log_dir = config.data.dir.join("logs"); let log_dir = config.data.dir.join("logs");
common::tracing_util::init(LevelFilter::DEBUG, format, log_dir, None) common::tracing_util::init(LevelFilter::DEBUG, format, log_dir, None)
.expect("initialize tracing"); .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 // Check for conflicting env / config values
if config.monero.network != env_config.monero_network { if config.monero.network != env_config.monero_network {

View file

@ -300,6 +300,13 @@ impl ContextBuilder {
data_dir.join("logs"), data_dir.join("logs"),
self.tauri_handle.clone(), 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 // Create the data structure we use to manage the swap lock