From 6f5f33d835885461bf4c2abb751908fa2fa7fafc Mon Sep 17 00:00:00 2001 From: MeiK Date: Tue, 27 Oct 2020 17:56:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=97=A5=E5=BF=97=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ src/main.rs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 536bc31..4101cac 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,6 @@ - 安全测试 - 优化 args 生成代码,减少测量出的用户代码执行时间 - special judge +- docker 部署 +- 更多语言支持 +- 使用配置文件配置语言 diff --git a/src/main.rs b/src/main.rs index 7adea27..7acf4bd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -104,8 +104,8 @@ impl River for RiverService { #[tokio::main] async fn main() -> Result<(), Box> { 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);