🏡 index : ~doyle/gitlab-cargo-shim.git

author Alex Butler <alexheretic@gmail.com> 2024-02-14 13:46:13.0 +00:00:00
committer Alex Butler <alexheretic@gmail.com> 2024-02-14 13:46:13.0 +00:00:00
commit
bd83c6bba080b4828561f9f263c7809920283565 [patch]
tree
3d3c6533602073c216c2b70603c9d6ba8bcc68c8
parent
93e39d28c2d938edb90a945900468723e4803ef5
download
bd83c6bba080b4828561f9f263c7809920283565.tar.gz

Maintain default log level info



Diff

 src/main.rs | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 17c3d38..8b90b8b 100644
--- a/src/main.rs
+++ a/src/main.rs
@@ -57,8 +57,11 @@

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let subscriber = tracing_subscriber::fmt()
        .with_env_filter(tracing_subscriber::EnvFilter::from_default_env());
    let subscriber = tracing_subscriber::fmt().with_env_filter(
        tracing_subscriber::EnvFilter::builder()
            .with_default_directive(tracing::level_filters::LevelFilter::INFO.into())
            .from_env_lossy(),
    );
    #[cfg(debug_assertions)]
    let subscriber = subscriber.pretty();
    subscriber.init();