Skip to content

armgit / ente

Public Imported from GitHub
0

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

log complete stdout and stderr

Abhinavd89e9b9765a7
diff --git a/src/services/clipService.ts b/src/services/clipService.ts
index a6f69055bb..6307321646 100644
--- a/src/services/clipService.ts
+++ b/src/services/clipService.ts
@@ -102,10 +102,12 @@ export async function computeImageEmbedding(
const escapedCmd = shellescape(cmd);
log.info('running clip command', escapedCmd);
const startTime = Date.now();
- const { stdout } = await execAsync(escapedCmd);
+ const { stdout, stderr } = await execAsync(escapedCmd);
log.info('clip command execution time ', Date.now() - startTime);
// parse stdout and return embedding
// get the last line of stdout
+ log.info('stdout', stdout);
+ log.info('stderr', stderr);
const lines = stdout.split('\n');
const lastLine = lines[lines.length - 1];
const embedding = JSON.parse(lastLine);