mirror of
https://github.com/MeiK2333/river.git
synced 2025-11-04 14:49:40 +08:00
更改日志输出
This commit is contained in:
parent
11c10cc24d
commit
6f5f33d835
@ -33,3 +33,6 @@
|
|||||||
- 安全测试
|
- 安全测试
|
||||||
- 优化 args 生成代码,减少测量出的用户代码执行时间
|
- 优化 args 生成代码,减少测量出的用户代码执行时间
|
||||||
- special judge
|
- special judge
|
||||||
|
- docker 部署
|
||||||
|
- 更多语言支持
|
||||||
|
- 使用配置文件配置语言
|
||||||
|
|||||||
@ -104,8 +104,8 @@ impl River for RiverService {
|
|||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let env = Env::default()
|
let env = Env::default()
|
||||||
.filter_or("MY_LOG_LEVEL", "debug")
|
.filter_or("LOG_LEVEL", "debug,h2=info,hyper=info")
|
||||||
.write_style_or("MY_LOG_STYLE", "always");
|
.write_style_or("LOG_STYLE", "always");
|
||||||
|
|
||||||
env_logger::init_from_env(env);
|
env_logger::init_from_env(env);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user