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"
488488serde_urlencoded = " 0.7.1"
489489serde_with = { version = " 3.8.1" }
490490serde_yaml = { version = " 0.9.34" }
491- serfig = " 0.1.0 "
491+ serfig = { git = " https://github.com/datafuse-extras/serfig " , rev = " 610ac6d " }
492492sha1 = " 0.10.5"
493493sha2 = " 0.10.8"
494494simdutf8 = " 0.1.4"
Original file line number Diff line number Diff line change @@ -3529,7 +3529,7 @@ pub struct SpillConfig {
35293529 /// Allow space in bytes to spill to local disk.
35303530 pub spill_local_disk_max_bytes : u64 ,
35313531
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.
35333533 #[ clap( skip) ]
35343534 pub storage : Option < StorageConfig > ,
35353535}
@@ -3840,4 +3840,19 @@ mod test {
38403840 "default setting is different from default config, please check again"
38413841 )
38423842 }
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+ }
38433858}
You canโt perform that action at this time.
0 commit comments