v3: more verbose logging in production and fix migration bugs

This commit is contained in:
Matteo Pagliazzi
2016-05-07 15:01:40 +02:00
parent afb7d1d627
commit 4e3d4c8831
6 changed files with 48 additions and 41 deletions

View File

@@ -11,6 +11,11 @@ const logger = new winston.Logger();
if (IS_PROD) {
// TODO production logging, use loggly and new relic too
// log errors to console too
logger
.add(winston.transports.Console, {
colorize: true,
prettyPrint: true,
});
} else if (IS_TEST) {
// Do not log anything when testing
} else {