search: Move invalid UTF-8 errors to debug level (#23602)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
7b69c4246a
commit
8efed4c449
2 changed files with 12 additions and 10 deletions
|
@ -701,7 +701,9 @@ impl WorktreeStore {
|
|||
for _ in 0..MAX_CONCURRENT_FILE_SCANS {
|
||||
let filter_rx = filter_rx.clone();
|
||||
scope.spawn(async move {
|
||||
Self::filter_paths(fs, filter_rx, query).await.log_err();
|
||||
Self::filter_paths(fs, filter_rx, query)
|
||||
.await
|
||||
.log_with_level(log::Level::Debug);
|
||||
})
|
||||
}
|
||||
})
|
||||
|
@ -1030,7 +1032,7 @@ impl WorktreeStore {
|
|||
// Before attempting to match the file content, throw away files that have invalid UTF-8 sequences early on;
|
||||
// That way we can still match files in a streaming fashion without having look at "obviously binary" files.
|
||||
return Err(anyhow!(
|
||||
"Invalid UTF-8 sequence at position {starting_position}"
|
||||
"Invalid UTF-8 sequence in file {abs_path:?} at byte position {starting_position}"
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue