Skip to content

Commit

Permalink
chore: 优化日志打印
Browse files Browse the repository at this point in the history
  • Loading branch information
Cnotech committed Jul 21, 2024
1 parent 644396f commit 04a0f03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/entrances/mirror.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use toml::{to_string_pretty, Value};
use url::Url;

use crate::{
log,
types::{
mirror::{MirrorHello, MirrorPkgSoftware, ServiceKeys},
verifiable::Verifiable,
Expand All @@ -32,7 +33,7 @@ pub fn mirror_add(url: &String, should_match_name: Option<String>) -> Result<Str
} else {
url.to_string()
};
println!("Fetching '{url}'...");
log!("Info:Fetching '{url}'...");

// 请求 url
let res: MirrorHello = get(&url)
Expand Down

0 comments on commit 04a0f03

Please sign in to comment.