add debug message

This commit is contained in:
yggverse 2025-06-07 17:31:59 +03:00
parent 29816f80ef
commit 45473762cb

View file

@ -71,6 +71,9 @@ async fn main() -> anyhow::Result<()> {
total += infohashes.len(); total += infohashes.len();
for i in infohashes { for i in infohashes {
if torrent_storage.as_ref().is_some_and(|s| !s.exists(&i)) { if torrent_storage.as_ref().is_some_and(|s| !s.exists(&i)) {
if is_debug_i {
debug::info(format!("Resolve `{i}`..."));
}
match session match session
.add_torrent( .add_torrent(
librqbit::AddTorrent::from_url(format!( librqbit::AddTorrent::from_url(format!(