mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-24 18:03:08 -05:00
feat: log enviroment info (#332)
This commit is contained in:
parent
01bac41625
commit
c4fb2cbd48
2 changed files with 14 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue