mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: 保存 renderer 日志到文件
This commit is contained in:
parent
d3089b8940
commit
4c625b172c
12 changed files with 61 additions and 31 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import * as Sentry from '@sentry/node'
|
||||
import * as Tracing from '@sentry/tracing'
|
||||
import pkg from '../../package.json'
|
||||
import logger from './logger'
|
||||
import log from './log'
|
||||
|
||||
logger.info(`[sentry] sentry initializing`)
|
||||
log.info(`[sentry] sentry initializing`)
|
||||
|
||||
Sentry.init({
|
||||
dsn: 'https://2aaaa67f1c3d4d6baefafa5d58fcf340@o436528.ingest.sentry.io/6274637',
|
||||
|
|
@ -16,4 +16,4 @@ Sentry.init({
|
|||
tracesSampleRate: 1.0,
|
||||
})
|
||||
|
||||
logger.info(`[sentry] sentry initialized`)
|
||||
log.info(`[sentry] sentry initialized`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue