File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ set positional-arguments
20
20
21
21
# (*) Run the open source convex backend on port 3210
22
22
run-local-backend * ARGS :
23
- RUST_LOG=${RUST_LOG:-info} cargo run -p local_backend --bin convex-local-backend -- " $@"
23
+ cargo run -p local_backend --bin convex-local-backend -- " $@"
24
24
25
25
# Uses an admin key from admin_key.txt for dev backends.
26
26
# This uses the default admin key for local backends, which is safe as long as the backend is
Original file line number Diff line number Diff line change @@ -87,7 +87,9 @@ pub fn config_tool() -> TracingGuard {
87
87
. boxed ( ) ,
88
88
} ;
89
89
let stdout = format_layer
90
- . with_filter ( tracing_subscriber:: EnvFilter :: from_default_env ( ) )
90
+ . with_filter (
91
+ tracing_subscriber:: EnvFilter :: try_from_default_env ( ) . unwrap_or ( EnvFilter :: new ( "info" ) ) ,
92
+ )
91
93
. boxed ( ) ;
92
94
layers. push ( stdout) ;
93
95
Original file line number Diff line number Diff line change @@ -37,9 +37,6 @@ use tokio::signal::{
37
37
} ;
38
38
39
39
fn main ( ) -> Result < ( ) , MainError > {
40
- if std:: env:: var_os ( "RUST_LOG" ) . is_none ( ) {
41
- std:: env:: set_var ( "RUST_LOG" , "info" ) ;
42
- }
43
40
tracing:: info!( "Starting a local backend" ) ;
44
41
let _guard = config_tool ( ) ;
45
42
let config = LocalConfig :: parse ( ) ;
You can’t perform that action at this time.
0 commit comments