Implement saver mode (#154)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user