Skip to content

Commit

Permalink
fix: disabled loggin
Browse files Browse the repository at this point in the history
  • Loading branch information
filename24 committed Oct 22, 2023
1 parent bc3a976 commit 93e7c03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion apps/bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"winston": "^3.10.0"
},
"devDependencies": {
"@sentry/cli": "^2.20.6",
"@types/node": "^18.15.11",
"@types/node-fetch": "^2.6.3",
"@types/node-schedule": "^2",
Expand All @@ -45,4 +46,4 @@
"node": ">=16.9"
},
"private": true
}
}
18 changes: 9 additions & 9 deletions packages/utils/src/libs/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ export class Logger extends BaseLogger<ILogObj> {
'{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}} [ {{logLevelName}} ] [ {{name}} ] ',
minLevel: process.env.NODE_ENV === 'development' ? LevelType.Debug : LevelType.Info,
})
this.stream = createStream(options.logPath!, {
size: '10M',
interval: '1d',
compress: 'gzip',
})
this.attachTransport((data) => {
this.stream.write(JSON.stringify(data) + '\n')
})
}
// this.stream = createStream(options.logPath!, {
// size: '10M',
// interval: '1d',
// compress: 'gzip',
// })
// this.attachTransport((data) => {
// this.stream.write(JSON.stringify(data) + '\n')
// })
// }
}

0 comments on commit 93e7c03

Please sign in to comment.