This repository has been archived by the owner on Aug 22, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56ff5f4
commit 1903ff2
Showing
4 changed files
with
6 additions
and
162 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,3 @@ | ||
const bunyan = require('bunyan'); | ||
|
||
const log = module.exports = bunyan.createLogger({ | ||
name: 'openbadges-backpack', | ||
stream: process.stdout, | ||
level: 'info', | ||
serializers: { | ||
req: bunyan.stdSerializers.req, | ||
res: bunyan.stdSerializers.res | ||
} | ||
}); | ||
|
||
// Patch console so it only outputs to stderr | ||
require('./console-patch'); | ||
|
||
// Normal uncaught exception handling outputs the stacktrace to the | ||
// console before exiting with a non-zero status. This is *almost* what | ||
// we want, except we also want to make sure it ends up in the | ||
// application's event stream as a fatal event. | ||
process.once('uncaughtException', function (err) { | ||
log.fatal(err); | ||
throw err; | ||
}); | ||
const messina = require('messina'); | ||
const log = module.exports = messina('openbadges-backpack'); | ||
log.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters