Merge pull request #795 from ente-io/remove-console-logs

remove console logs
This commit is contained in:
Abhinav Kumar 2022-11-29 21:02:39 +05:30 committed by GitHub
commit a6f71bb26d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 16 deletions

View file

@ -240,7 +240,6 @@ function PhotoViewer(props: Iprops) {
useEffect(() => {
exifCopy.current = exif;
console.log(exif);
}, [exif]);
function updateFavButton(file: EnteFile) {
@ -416,16 +415,12 @@ function PhotoViewer(props: Iprops) {
const checkExifAvailable = async (file: EnteFile) => {
try {
console.log('checkExifAvailable', file.src);
if (exifExtractionInProgress.current === file.src) {
console.log('already in process');
return;
}
try {
if (file.isSourceLoaded) {
console.log('starting processing');
exifExtractionInProgress.current = file.src;
console.log(file.originalImageURL);
const imageBlob = await (
await fetch(file.originalImageURL)
).blob();
@ -433,20 +428,15 @@ function PhotoViewer(props: Iprops) {
string,
any
>;
console.log({ exifData });
console.log(exifExtractionInProgress, file.src);
if (exifExtractionInProgress.current === file.src) {
if (exifData) {
console.log('set extracted metadata');
setExif({ key: file.src, value: exifData });
} else {
console.log("doesn't have metadata");
setExif({ key: file.src, value: null });
}
}
}
} finally {
console.log('cleared exifExtractionInProgress');
exifExtractionInProgress.current = null;
}
} catch (e) {

View file

@ -244,10 +244,7 @@ class ExportService {
file,
RecordType.FAILED
);
console.log(
`export failed for fileID:${file.id}, reason:`,
e
);
logError(
e,
'download and save failed for file during export'
@ -624,7 +621,6 @@ class ExportService {
oldFileSavePath,
newFileSavePath
);
console.log(oldFileMetadataSavePath, newFileMetadataSavePath);
await this.electronAPIs.checkExistsAndRename(
oldFileMetadataSavePath,
newFileMetadataSavePath

View file

@ -200,7 +200,6 @@ export const syncPublicFiles = async (
const parsedError = parseSharingErrorCodes(e);
logError(e, 'failed to sync shared collection files');
if (parsedError.message === CustomError.TOKEN_EXPIRED) {
console.log('invalid token or password');
throw e;
}
}