Implement saver mode (#154)

This commit is contained in:
Will Chen
2025-05-13 15:34:41 -07:00
committed by GitHub
parent 3763423dc7
commit 069c221292
11 changed files with 1630 additions and 15 deletions

View File

@@ -12,7 +12,9 @@ export function createLoggedHandler(logger: log.LogFunctions) {
logger.log(`IPC: ${channel} called with args: ${JSON.stringify(args)}`);
try {
const result = await fn(event, ...args);
logger.log(`IPC: ${channel} returned: ${JSON.stringify(result)}`);
logger.log(
`IPC: ${channel} returned: ${JSON.stringify(result).slice(0, 100)}...`,
);
return result;
} catch (error) {
logger.error(