Compare commits
2 Commits
e53a452ada
...
6746e94f6d
Author | SHA1 | Date | |
---|---|---|---|
6746e94f6d | |||
1ec5921248 |
@ -28,15 +28,10 @@ fn main() -> Result<()> {
|
||||
// let systemd know we're ready
|
||||
let _ = libsystemd::daemon::notify(false, &[libsystemd::daemon::NotifyState::Ready])?;
|
||||
// debug stuff
|
||||
let debug = env::var("NIRI_TAG_DEBUG").is_ok();
|
||||
tracing_subscriber::fmt()
|
||||
.with_max_level(if debug {
|
||||
tracing::Level::DEBUG
|
||||
} else {
|
||||
tracing::Level::INFO
|
||||
})
|
||||
.with_max_level(tracing::Level::DEBUG)
|
||||
.init();
|
||||
let span = if debug {
|
||||
let span = if env::var("NIRI_TAG_DEBUG").is_ok() {
|
||||
tracing::span!(tracing::Level::DEBUG, "main")
|
||||
} else {
|
||||
tracing::span!(tracing::Level::INFO, "main")
|
||||
|
Loading…
Reference in New Issue
Block a user