Skip to content

Commit

Permalink
fix: use electron-log format styles. The function can not transform o…
Browse files Browse the repository at this point in the history
…bject correctly. (#2889)
  • Loading branch information
yanguoyu authored Oct 19, 2023
1 parent 09fd7c8 commit a8bf38d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/neuron-wallet/src/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import env from '../env'
if (!env.isDevMode) {
logger.transports.file.level = 'info'
}
logger.transports.file.format = ({ date, level, data }) => {
return `[${date.toISOString()}] [${level}] ${data}`
}
logger.transports.console.format = ({ date, level, data }) => {
return `[${date.toISOString()}] [${level}] ${data}`
}
logger.transports.file.format = '[{iso}] [{level}] {text}'

logger.transports.console.format = '[{iso}] [{level}] {text}'

// logger.catchErrors({ showDialog: false })

export default logger

2 comments on commit a8bf38d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 6571701842

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 6571703158

Please sign in to comment.