mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
update debug details
This commit is contained in:
parent
5be6696d95
commit
c80d5076cc
1 changed files with 7 additions and 7 deletions
14
src/main.rs
14
src/main.rs
|
|
@ -143,28 +143,28 @@ async fn main() -> Result<()> {
|
||||||
.is_some_and(|limit| only_files.len() + 1 > limit)
|
.is_some_and(|limit| only_files.len() + 1 > limit)
|
||||||
{
|
{
|
||||||
log::debug!(
|
log::debug!(
|
||||||
"file count limit reached, skip `{id}` for `{i}`"
|
"file count limit reached, skip file #`{id}` for `{i}`"
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if preload.max_filesize.is_some_and(|limit| info.len > limit) {
|
if preload.max_filesize.is_some_and(|limit| info.len > limit) {
|
||||||
log::debug!(
|
log::debug!(
|
||||||
"file size limit reached, skip `{id}` for `{i}`"
|
"file size limit reached, skip file #`{id}` for `{i}`"
|
||||||
);
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if preload.regex.as_ref().is_some_and(|r| {
|
if preload.regex.as_ref().is_some_and(|r| {
|
||||||
!r.is_match(&info.relative_filename.to_string_lossy())
|
!r.is_match(&info.relative_filename.to_string_lossy())
|
||||||
}) {
|
}) {
|
||||||
log::debug!("regex filter, skip `{id}` for `{i}`");
|
log::debug!("regex filter, skip file #`{id}` for `{i}`");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
assert!(keep_files.insert(info.relative_filename.clone()));
|
|
||||||
assert!(only_files.insert(id));
|
|
||||||
log::debug!(
|
log::debug!(
|
||||||
"persist `{}` for `{i}`",
|
"keep file #`{id}` for `{i}` as `{}`",
|
||||||
info.relative_filename.to_string_lossy()
|
info.relative_filename.to_string_lossy()
|
||||||
)
|
);
|
||||||
|
assert!(keep_files.insert(info.relative_filename.clone()));
|
||||||
|
assert!(only_files.insert(id))
|
||||||
}
|
}
|
||||||
m.torrent_bytes.to_vec()
|
m.torrent_bytes.to_vec()
|
||||||
})?;
|
})?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue