Skip to content

Commit

Permalink
fix(server): print version after initializing logging
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmarc committed Apr 27, 2024
1 parent c1fbaf1 commit f708ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ fn main() -> Result<()> {
return Ok(());
}

debug!(version, "starting up");

let bug_report_dir = if args.bug_report {
let dirname = std::env::temp_dir().join(format!("magic-mirror-{}", uuid::Uuid::new_v4()));
std::fs::DirBuilder::new().mode(0o0755).create(&dirname)?;
Expand All @@ -80,6 +78,8 @@ fn main() -> Result<()> {
};

init_logging(bug_report_dir.as_ref())?;

debug!(version, "starting up");
if let Some(ref dirname) = bug_report_dir {
warn!("generating bug report files in: {:?}", &dirname);
}
Expand Down

0 comments on commit f708ad2

Please sign in to comment.