Fix JSON.stringify log (#158)

This commit is contained in:
Will Chen
2025-05-13 16:05:09 -07:00
committed by GitHub
parent 763757b235
commit 4863a3861c

View File

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