mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Use compact tracing formatting
This commit is contained in:
+5
-2
@@ -16,9 +16,12 @@ pub struct CalloopData {
|
|||||||
|
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
if let Ok(env_filter) = tracing_subscriber::EnvFilter::try_from_default_env() {
|
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 {
|
} else {
|
||||||
tracing_subscriber::fmt().init();
|
tracing_subscriber::fmt().compact().init();
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut event_loop: EventLoop<CalloopData> = EventLoop::try_new()?;
|
let mut event_loop: EventLoop<CalloopData> = EventLoop::try_new()?;
|
||||||
|
|||||||
Reference in New Issue
Block a user