File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ use cli::Opt;
27
27
use rfd:: MessageDialogResult ;
28
28
use ruffle_core:: StaticCallstack ;
29
29
use std:: cell:: RefCell ;
30
+ use std:: env;
30
31
use std:: fs:: File ;
31
32
use std:: panic:: PanicInfo ;
32
33
use tracing_subscriber:: fmt:: Layer ;
@@ -162,7 +163,11 @@ fn main() -> Result<(), Error> {
162
163
let ( non_blocking_file, _file_guard) = tracing_appender:: non_blocking ( File :: create ( log_path) ?) ;
163
164
let ( non_blocking_stdout, _stdout_guard) = tracing_appender:: non_blocking ( std:: io:: stdout ( ) ) ;
164
165
165
- let env_filter = tracing_subscriber:: EnvFilter :: from_default_env ( ) ;
166
+ let env_filter = tracing_subscriber:: EnvFilter :: builder ( ) . parse_lossy (
167
+ env:: var ( "RUST_LOG" )
168
+ . as_deref ( )
169
+ . unwrap_or ( "warn,ruffle=info,avm_trace=info" ) ,
170
+ ) ;
166
171
167
172
let subscriber = tracing_subscriber:: registry ( )
168
173
. with ( env_filter)
You can’t perform that action at this time.
0 commit comments