Remove debug logs (#1555)

This commit is contained in:
Abhinav Kumar 2024-01-18 11:13:12 +05:30 committed by GitHub
commit 69d11c2fc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 6 deletions

View file

@ -34,7 +34,6 @@ import { t } from 'i18next';
import memoize from 'memoize-one';
import { LocationTagData } from 'types/entity';
import { FILE_TYPE } from 'constants/file';
import { addLogLine } from '@ente/shared/logging';
interface Iprops {
isOpen: boolean;
@ -70,10 +69,7 @@ export default function SearchInput(props: Iprops) {
}, []);
async function refreshDefaultOptions() {
const t = Date.now();
addLogLine('refreshDefaultOptions called');
const defaultOptions = await getDefaultOptions(props.files);
addLogLine(`refreshDefaultOptions end time: ${Date.now() - t}ms`);
setDefaultOptions(defaultOptions);
}

View file

@ -174,9 +174,7 @@ function getYearSuggestion(searchPhrase: string): Suggestion[] {
export async function getAllPeopleSuggestion(): Promise<Array<Suggestion>> {
try {
addLogLine('getAllPeopleSuggestion called');
const people = await getAllPeople(200);
addLogLine(`found people: ${people?.length ?? 0}`);
return people.map((person) => ({
label: person.name,
type: SuggestionType.PERSON,