diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-11-24 23:22:53 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-11-24 23:22:53 +0400 |
| commit | df5512c0a87aeea3fe4ddd24d667cc6efc15a64c (patch) | |
| tree | 5477e9562c1f082e9f163be208d9f6f436cea552 /src/main.rs | |
| parent | ae47f2116decc046836c9e02880af79bf5f507ee (diff) | |
| download | niri-df5512c0a87aeea3fe4ddd24d667cc6efc15a64c.tar.gz niri-df5512c0a87aeea3fe4ddd24d667cc6efc15a64c.tar.bz2 niri-df5512c0a87aeea3fe4ddd24d667cc6efc15a64c.zip | |
Move first log message to after cli parsing
So that it doesn't occur during --help etc.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index 686abc81..d16db5f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,12 +74,6 @@ fn main() { .with_env_filter(env_filter) .init(); - info!( - "starting version {} ({})", - env!("CARGO_PKG_VERSION"), - git_version!(fallback = "unknown commit"), - ); - if is_systemd_service { // If we're starting as a systemd service, assume that the intention is to start on a TTY. // Remove DISPLAY or WAYLAND_DISPLAY from our environment if they are set, since they will @@ -98,6 +92,12 @@ fn main() { let _client = tracy_client::Client::start(); + info!( + "starting version {} ({})", + env!("CARGO_PKG_VERSION"), + git_version!(fallback = "unknown commit"), + ); + // Load the config. miette::set_hook(Box::new(|_| Box::new(NarratableReportHandler::new()))).unwrap(); let (mut config, path) = match Config::load(cli.config).context("error loading config") { |
