Skip to content

Commit d082908

Browse files
nipunn1313Convex, Inc.
authored andcommitted
Add RUST_LOG info default for local-backend (#23913)
Makes precompiled binary give logs by default. GitOrigin-RevId: c2017d3861480852707dc890faadb95420e1331f
1 parent b0de598 commit d082908

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/local_backend/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ use tokio::signal::{
3737
};
3838

3939
fn main() -> Result<(), MainError> {
40+
if std::env::var_os("RUST_LOG").is_none() {
41+
std::env::set_var("RUST_LOG", "info");
42+
}
4043
tracing::info!("Starting a local backend");
4144
let _guard = config_tool();
4245
let config = LocalConfig::parse();

0 commit comments

Comments
 (0)