mirror of
https://github.com/house-of-vanity/desubot.git
synced 2025-07-08 13:04:06 +00:00
test
This commit is contained in:
@ -67,7 +67,7 @@ pub(crate) async fn get_files(
|
||||
let file_hash = hasher.digest().to_string();
|
||||
match db::get_file(file_hash.clone()).await {
|
||||
Ok(_) => {
|
||||
println!("File exist");
|
||||
info!("File {} exist", file_hash);
|
||||
}
|
||||
Err(_) => {
|
||||
let mut dest = File::create(path.clone())?;
|
||||
@ -76,7 +76,7 @@ pub(crate) async fn get_files(
|
||||
};
|
||||
db::add_file(&message, path, file_hash).await?;
|
||||
}
|
||||
Err(e) => println!("Couldn't get file: {}", e)
|
||||
Err(e) => warn!("Couldn't get file: {}", e)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user