mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Move first log message to after cli parsing
So that it doesn't occur during --help etc.
This commit is contained in:
+6
-6
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user