Skip to content

Commit

Permalink
fix: Pass the correct params to writeFn (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuewenG authored Dec 22, 2023
1 parent c0610ec commit 00cd210
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ const defaultLogger = new Logger({

defaultLogger.processInternalErrorFn = (e) => {
defaultLogger.transports.console.writeFn({
data: ['Unhandled electron-log error', e],
level: 'error',
message: {
data: ['Unhandled electron-log error', e],
level: 'error',
},
});
};

Expand Down

0 comments on commit 00cd210

Please sign in to comment.