Skip to content

Commit

Permalink
fix(log): remove prettystream (#13)
Browse files Browse the repository at this point in the history
a bit of a shot in the dark to fix an error in revo-interface that implicates this library's logging
  • Loading branch information
cajubelt authored Sep 6, 2022
1 parent 9535dc8 commit cf68228
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"dependencies": {
"bignumber.js": "^9.1.0",
"bunyan": "^1.8.15",
"bunyan-prettystream": "^0.1.3",
"ethers": "^5.7.0"
}
}
12 changes: 0 additions & 12 deletions src/log.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
import * as Logger from 'bunyan'
import PrettyStream from 'bunyan-prettystream'

const consoleStream = new PrettyStream()
consoleStream.pipe(process.stdout)

const streams: Logger.Stream[] = [
{
stream: consoleStream,
level: (process.env.LOG_LEVEL as Logger.LogLevel) ?? 'info',
},
]

export default Logger.createLogger({
name: 'farm-bot-apy',
streams,
})

0 comments on commit cf68228

Please sign in to comment.