File tree Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ serde_test = "1.0"
488
488
serde_urlencoded = " 0.7.1"
489
489
serde_with = { version = " 3.8.1" }
490
490
serde_yaml = { version = " 0.9.34" }
491
- serfig = " 0.1.0 "
491
+ serfig = { git = " https://github.com/datafuse-extras/serfig " , rev = " 610ac6d " }
492
492
sha1 = " 0.10.5"
493
493
sha2 = " 0.10.8"
494
494
simdutf8 = " 0.1.4"
Original file line number Diff line number Diff line change @@ -3529,7 +3529,7 @@ pub struct SpillConfig {
3529
3529
/// Allow space in bytes to spill to local disk.
3530
3530
pub spill_local_disk_max_bytes : u64 ,
3531
3531
3532
- // TODO: We need to fix StorageConfig so that it supports environment variables and command line injections.
3532
+ // TODO: We need to fix StorageConfig so that it supports command line injections.
3533
3533
#[ clap( skip) ]
3534
3534
pub storage : Option < StorageConfig > ,
3535
3535
}
@@ -3840,4 +3840,19 @@ mod test {
3840
3840
"default setting is different from default config, please check again"
3841
3841
)
3842
3842
}
3843
+
3844
+ #[ test]
3845
+ fn test_env ( ) {
3846
+ unsafe {
3847
+ std:: env:: set_var ( "LOG_TRACING_OTLP_ENDPOINT" , "http://127.0.2.1:1111" ) ;
3848
+ std:: env:: set_var ( "LOG_TRACING_CAPTURE_LOG_LEVEL" , "DebuG" ) ;
3849
+ }
3850
+
3851
+ let cfg = Config :: load_with_config_file ( "" ) . unwrap ( ) ;
3852
+ assert_eq ! (
3853
+ cfg. log. tracing. tracing_otlp. endpoint,
3854
+ "http://127.0.2.1:1111"
3855
+ ) ;
3856
+ assert_eq ! ( cfg. log. tracing. tracing_capture_log_level, "DebuG" ) ;
3857
+ }
3843
3858
}
You canโt perform that action at this time.
0 commit comments