Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

More

Manav Rathi83516a7f27a7
diff --git a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
index 3bb010d708..fe7f2724e2 100644
--- a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
@@ -775,7 +775,7 @@ const canvasToFile = async (
const [originalName] = nameAndExtension(originalFileName);
const fileName = `${originalName}-edited.${extension}`;
- log.debug(() => ({ a: "canvas => file", blob, type: blob.type, mimeType }));
+ log.debug(() => ["canvas => file", { blob, type: blob.type, mimeType }]);
return new File([blob], fileName);
};
diff --git a/web/apps/photos/src/components/Upload/Uploader.tsx b/web/apps/photos/src/components/Upload/Uploader.tsx
index 767b32c35d..3604bef2ad 100644
--- a/web/apps/photos/src/components/Upload/Uploader.tsx
+++ b/web/apps/photos/src/components/Upload/Uploader.tsx
@@ -396,9 +396,8 @@ export default function Uploader({
);
setImportSuggestion(importSuggestion);
- log.debug(() => "Uploader invoked:");
- log.debug(() => uploadItemsAndPaths.current);
- log.debug(() => importSuggestion);
+ log.debug(() => ["Upload request", uploadItemsAndPaths.current]);
+ log.debug(() => ["Import suggestion", importSuggestion]);
const _pickedUploadType = pickedUploadType.current;
pickedUploadType.current = null;
diff --git a/web/apps/photos/src/services/searchService.ts b/web/apps/photos/src/services/searchService.ts
index 5514233ce4..4afd7af0ef 100644
--- a/web/apps/photos/src/services/searchService.ts
+++ b/web/apps/photos/src/services/searchService.ts
@@ -375,7 +375,7 @@ const searchClip = async (
// TODO-ML: clip-test
return undefined;
// const matches = await clipMatches(searchPhrase, ensureElectron());
- // log.debug(() => ({ t: "clip-scores", matches }));
+ // log.debug(() => ["clip/scores", matches]);
// return matches;
};
diff --git a/web/apps/photos/src/services/watch.ts b/web/apps/photos/src/services/watch.ts
index 8c367ee71c..fd381e278c 100644
--- a/web/apps/photos/src/services/watch.ts
+++ b/web/apps/photos/src/services/watch.ts
@@ -381,14 +381,14 @@ class FolderWatcher {
const electron = ensureElectron();
const watch = this.activeWatch;
- log.debug(() =>
+ log.debug(() => [
+ "watch/allFileUploadsDone",
JSON.stringify({
- f: "watch/allFileUploadsDone",
uploadItemsWithCollection,
collections,
watch,
}),
- );
+ ]);
const { syncedFiles, ignoredFiles } = this.deduceSyncedAndIgnored(
uploadItemsWithCollection,
diff --git a/web/packages/accounts/components/Login.tsx b/web/packages/accounts/components/Login.tsx
index 68a9270c2f..206729a5b7 100644
--- a/web/packages/accounts/components/Login.tsx
+++ b/web/packages/accounts/components/Login.tsx
@@ -29,7 +29,7 @@ export const Login: React.FC<LoginProps> = ({ signUp, host }) => {
try {
await setLSUser({ email });
const srpAttributes = await getSRPAttributes(email);
- log.debug(() => ` srpAttributes: ${JSON.stringify(srpAttributes)}`);
+ log.debug(() => ["srpAttributes", JSON.stringify(srpAttributes)]);
if (!srpAttributes || srpAttributes.isEmailMFAEnabled) {
await sendOtt(email);
router.push(PAGES.VERIFY);
diff --git a/web/packages/new/photos/services/ml/index.ts b/web/packages/new/photos/services/ml/index.ts
index 1f6ff828f1..41456b5663 100644
--- a/web/packages/new/photos/services/ml/index.ts
+++ b/web/packages/new/photos/services/ml/index.ts
@@ -184,7 +184,7 @@ export const triggerMLSync = () => {
export const indexNewUpload = (enteFile: EnteFile, uploadItem: UploadItem) => {
if (!_isMLEnabled) return;
if (enteFile.metadata.fileType !== FILE_TYPE.IMAGE) return;
- log.debug(() => ({ t: "ml/liveq", enteFile, uploadItem }));
+ log.debug(() => ["ml/liveq", {enteFile, uploadItem }]);
void worker().then((w) => w.onUpload(enteFile, uploadItem));
};
diff --git a/web/packages/new/photos/services/ml/worker.ts b/web/packages/new/photos/services/ml/worker.ts
index 009d4b9106..e71d56a85d 100644
--- a/web/packages/new/photos/services/ml/worker.ts
+++ b/web/packages/new/photos/services/ml/worker.ts
@@ -145,13 +145,15 @@ export class MLWorker {
}
private async tick() {
- log.debug(() => ({
- t: "ml/tick",
- state: this.state,
- shouldSync: this.shouldPull,
- liveQ: this.liveQ,
- idleDuration: this.idleDuration,
- }));
+ log.debug(() => [
+ "ml/tick",
+ {
+ state: this.state,
+ shouldSync: this.shouldPull,
+ liveQ: this.liveQ,
+ idleDuration: this.idleDuration,
+ },
+ ]);
const scheduleTick = () => void setTimeout(() => this.tick(), 0);