[logfile] increase format detection limit

This commit is contained in:
Timothy Stack 2021-05-06 10:42:05 -07:00
parent ab671d5834
commit 0dbe5f0f94
2 changed files with 2 additions and 2 deletions

View File

@ -299,7 +299,7 @@ file_collection::watch_logfile(const std::string &filename,
.with_source(logfile_name_source::ARCHIVE)
.with_visibility(is_visible)
.with_non_utf_visibility(false)
.with_visible_size_limit(128 * 1024);
.with_visible_size_limit(256 * 1024);
});
if (res.isErr()) {
log_error("archive extraction failed: %s",

View File

@ -464,7 +464,7 @@ logfile::rebuild_result_t logfile::rebuild_index()
break;
}
if (begin_size == 0 && !has_format &&
li.li_file_range.fr_offset > 32 * 1024) {
li.li_file_range.fr_offset > 256 * 1024) {
break;
}
}