diff --git a/justfile b/justfile index b39d003..239aff5 100644 --- a/justfile +++ b/justfile @@ -1,13 +1,17 @@ +# Set default log level if not provided through environment +export LOG_LEVEL := env_var_or_default("RUST_LOG", "info") + default: test test: - RUST_LOG=debug cargo test + RUST_LOG={{LOG_LEVEL}} cargo test build: cargo build +# For log level use RUST_LOG=<> just run run config="config.toml": - RUST_LOG=debug cargo run -- --config-file={{config}} + RUST_LOG={{LOG_LEVEL}} cargo run -- --config-file={{config}} check: cargo check