Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Force ship to be turned off to avoid crash
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrossmann committed Apr 8, 2016
1 parent 63984fd commit d1c267a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ module.exports = function bunyanlog(app) {
initialize(done) {
// Override the built-in logger
app.log = bunyan.createLogger(app.config.log)
// Force the ship printing off, it crashes the app because sails.log() is not a function
app.config.log.noShip = true
// ...and export the original bunyan, just in case someone needs it
app.hooks.logger.bunyan = bunyan

Expand Down

0 comments on commit d1c267a

Please sign in to comment.