change debug level to info

This commit is contained in:
yggverse 2025-08-18 06:00:29 +03:00
parent b1309c5dff
commit 21933b454c

View file

@ -186,7 +186,7 @@ async fn main() -> Result<()> {
) )
.await .await
{ {
log::debug!( log::info!(
"skip awaiting the completion of preload `{h}` data (`{e}`), ban until {}.", "skip awaiting the completion of preload `{h}` data (`{e}`), ban until {}.",
ban.add(i) ban.add(i)
); );
@ -206,22 +206,22 @@ async fn main() -> Result<()> {
session session
.delete(librqbit::api::TorrentIdOrHash::Id(id), false) .delete(librqbit::api::TorrentIdOrHash::Id(id), false)
.await?; // torrent data was moved on commit; there's no sense in keeping it .await?; // torrent data was moved on commit; there's no sense in keeping it
log::debug!("torrent `{h}` resolved.") log::info!("torrent `{h}` resolved.")
} }
Ok(_) => panic!(), Ok(_) => panic!(),
Err(e) => log::debug!( Err(e) => log::info!(
"failed to resolve torrent `{h}`: `{e}`, ban until {}.", "failed to resolve torrent `{h}`: `{e}`, ban until {}.",
ban.add(i) ban.add(i)
), ),
}, },
Err(e) => log::debug!( Err(e) => log::info!(
"skip awaiting the completion of adding torrent `{h}` data (`{e}`), ban until {}.", "skip awaiting the completion of adding torrent `{h}` data (`{e}`), ban until {}.",
ban.add(i) ban.add(i)
), ),
} }
} }
} }
log::debug!( log::info!(
"queue completed at {time_queue} (time: {} / uptime: {} / banned: {}) await {} seconds to continue...", "queue completed at {time_queue} (time: {} / uptime: {} / banned: {}) await {} seconds to continue...",
Local::now() Local::now()
.signed_duration_since(time_queue) .signed_duration_since(time_queue)