From 2bdfdd8b8f68364ccc52ecf180911cbaa49bd7fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=80=E1=B4=8D=E1=B4=9B=E1=B4=8F=E1=B4=80=E1=B4=87?= =?UTF-8?q?=CA=80?= Date: Wed, 24 Apr 2024 20:28:18 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=AD=89=E7=BA=A7=E4=B8=BA=20info=20(#75)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 63f396d..a87bfcc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,7 @@ mod database; mod downloader; mod error; +use env_logger::Env; use once_cell::sync::Lazy; use self::bilibili::BiliClient; @@ -17,7 +18,7 @@ use self::database::{database_connection, migrate_database}; #[tokio::main] async fn main() -> ! { - env_logger::init(); + env_logger::init_from_env(Env::default().default_filter_or("None,bili_sync=info")); Lazy::force(&CONFIG); let mut anchor = chrono::Local::now().date_naive(); let bili_client = BiliClient::new();