Skip to content

Commit

Permalink
chore: add xlm version to log output
Browse files Browse the repository at this point in the history
  • Loading branch information
Blooym committed Oct 30, 2024
1 parent 2f7844f commit 4fce7a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mod includes;
use anyhow::Result;
use clap::Parser;
use commands::{install_steam_tool::InstallSteamToolCommand, launch::LaunchCommand};
use log::debug;
use simplelog::{
ColorChoice, CombinedLogger, Config, LevelFilter, TermLogger, TerminalMode, WriteLogger,
};
Expand Down Expand Up @@ -55,12 +56,14 @@ async fn main() -> Result<()> {
ColorChoice::Auto,
),
WriteLogger::new(
LevelFilter::Debug,
LevelFilter::Trace,
Config::default(),
File::create(temp_dir().join(format!("{}.log", env!("CARGO_PKG_NAME")))).unwrap(),
),
])?;

debug!("XLM v{}", env!("CARGO_PKG_VERSION"));

// Ensure the binary is up to date from GitHub releases.
#[cfg(not(debug_assertions))]
if !args.xlm_updater_disable {
Expand Down

0 comments on commit 4fce7a8

Please sign in to comment.