mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-25 10:23:20 -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");
|
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 {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue