Skip to content

Commit

Permalink
ref: 优化日志输出
Browse files Browse the repository at this point in the history
  • Loading branch information
SerenitySir committed May 22, 2024
1 parent 09c96df commit d80561b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/sangfor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::HashMap;
use std::future::Future;
use std::time::{SystemTime, UNIX_EPOCH};
use async_trait::async_trait;
use log::info;
use log::{debug, info};
use reqwest::{Error, Response};
use crate::core::nal;
use crate::core::nal::{get_no_proxy_client, LoginConfig, Nal};
Expand Down Expand Up @@ -60,7 +60,7 @@ impl Nal for Sangfor {
.await?
.json::<serde_json::Value>()
.await?;
info!("login result: {rsp:#?}");
debug!("login result: {rsp:#?}");
// rsp.is_ok()
Ok(rsp["success"] == true)
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async fn main() {

async fn handler(){
let config = nal::init_config();
info!("config: {config:#?}");
debug!("config: {config:#?}");

/*let expression = "* 1 * * * * *";
let schedule = Schedule::from_str(expression).unwrap();
Expand Down

0 comments on commit d80561b

Please sign in to comment.