|
@@ -53,7 +53,6 @@ pub fn load_config() -> config::Config {
|
|
} else {
|
|
} else {
|
|
"config-test.toml"
|
|
"config-test.toml"
|
|
};
|
|
};
|
|
- println!("{path}");
|
|
|
|
let config = read_to_string(path).expect("读取配置文件错误");
|
|
let config = read_to_string(path).expect("读取配置文件错误");
|
|
toml::from_str(&config).expect("解析配置文件错误")
|
|
toml::from_str(&config).expect("解析配置文件错误")
|
|
}
|
|
}
|
|
@@ -65,7 +64,7 @@ pub fn init_tracing() {
|
|
let offset = UtcOffset::from_hms(8, 0, 0).unwrap();
|
|
let offset = UtcOffset::from_hms(8, 0, 0).unwrap();
|
|
let local_time = OffsetTime::new(offset, time_format);
|
|
let local_time = OffsetTime::new(offset, time_format);
|
|
|
|
|
|
- let writer = tracing_appender::rolling::daily("logs", "log");
|
|
|
|
|
|
+ let writer = tracing_appender::rolling::daily("logs", "sd-proxy.log");
|
|
|
|
|
|
let fmt = tracing_subscriber::fmt::format()
|
|
let fmt = tracing_subscriber::fmt::format()
|
|
.with_timer(local_time)
|
|
.with_timer(local_time)
|