Compare commits

..

2 Commits

View File

@ -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")