更改日志输出

This commit is contained in:
MeiK 2020-10-27 17:56:23 +08:00
parent 11c10cc24d
commit 6f5f33d835
2 changed files with 5 additions and 2 deletions

View File

@ -33,3 +33,6 @@
- 安全测试
- 优化 args 生成代码,减少测量出的用户代码执行时间
- special judge
- docker 部署
- 更多语言支持
- 使用配置文件配置语言

View File

@ -104,8 +104,8 @@ impl River for RiverService {
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let env = Env::default()
.filter_or("MY_LOG_LEVEL", "debug")
.write_style_or("MY_LOG_STYLE", "always");
.filter_or("LOG_LEVEL", "debug,h2=info,hyper=info")
.write_style_or("LOG_STYLE", "always");
env_logger::init_from_env(env);