diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-07 19:53:19 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-10 14:49:38 +0400 |
| commit | d182996c8c983334462c666b592e391d2861cb70 (patch) | |
| tree | 15b71027f3963f725327f6d2cbd05c0bb0f494b6 /src | |
| parent | 7c8ea3fd70117273fdb013a7e747083d04215812 (diff) | |
| download | niri-d182996c8c983334462c666b592e391d2861cb70.tar.gz niri-d182996c8c983334462c666b592e391d2861cb70.tar.bz2 niri-d182996c8c983334462c666b592e391d2861cb70.zip | |
Use compact tracing formatting
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 7e2650c6..3e285536 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,9 +16,12 @@ pub struct CalloopData { fn main() -> Result<(), Box<dyn std::error::Error>> { if let Ok(env_filter) = tracing_subscriber::EnvFilter::try_from_default_env() { - tracing_subscriber::fmt().with_env_filter(env_filter).init(); + tracing_subscriber::fmt() + .compact() + .with_env_filter(env_filter) + .init(); } else { - tracing_subscriber::fmt().init(); + tracing_subscriber::fmt().compact().init(); } let mut event_loop: EventLoop<CalloopData> = EventLoop::try_new()?; |
