Skip to content

Commit

Permalink
Add RUST_LOG info default for local-backend (#23913)
Browse files Browse the repository at this point in the history
Makes precompiled binary give logs by default.

GitOrigin-RevId: c2017d3861480852707dc890faadb95420e1331f
  • Loading branch information
nipunn1313 authored and Convex, Inc. committed Mar 25, 2024
1 parent b0de598 commit d082908
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/local_backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ use tokio::signal::{
};

fn main() -> Result<(), MainError> {
if std::env::var_os("RUST_LOG").is_none() {
std::env::set_var("RUST_LOG", "info");
}
tracing::info!("Starting a local backend");
let _guard = config_tool();
let config = LocalConfig::parse();
Expand Down

0 comments on commit d082908

Please sign in to comment.