Skip to content

Commit

Permalink
fix(gatsby): minor refactor of console functions (#14956)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Lafayette authored and wardpeet committed Jun 21, 2019
1 parent 8df6f29 commit 7775b3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/gatsby-cli/src/reporter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ const reporter: Reporter = {
}

console.log = (...args) => reporter.log(util.format(...args))
console.warn = (...args) => reporter.warn(util.format(...args))
console.info = (...args) => reporter.info(util.format(...args))
console.error = (...args) => reporter.error(util.format(...args))
console.warn = (...args) => reporter.log(util.format(...args))
console.info = (...args) => reporter.log(util.format(...args))
console.error = (...args) => reporter.log(util.format(...args))

module.exports = reporter

0 comments on commit 7775b3e

Please sign in to comment.