Skip to content

Commit

Permalink
Fix linter error in getLogMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
atkinchris committed Jun 17, 2024
1 parent a06816e commit 8e1d6f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/patches/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ const getLogMethod = nextMethod => {
case 'trace':
if ('trace' in childLogger) {
return childLogger.trace.bind(childLogger)
} else {
// To support Winston which doesn't have logger.trace()
return childLogger.debug.bind(childLogger)
}
// To support Winston which doesn't have logger.trace()
return childLogger.debug.bind(childLogger)
default:
return childLogger.info.bind(childLogger)
}
Expand Down

0 comments on commit 8e1d6f9

Please sign in to comment.