Permalink
Browse files

Fix broken manage_users after Winston upgrade

Commit c358477 upgrades Winston and with that version
`logger.transports.console` becomes undefined. This commit
updates the code to prevent the crash.

Signed-off-by: Daan Sprenkels <hello@dsprenkels.com>
  • Loading branch information...
dsprenkels committed Jan 10, 2019
1 parent 4eb7748 commit 7c144ac7a99b806b55aed1810cfa434318f073ec
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/manage_users
@@ -2,7 +2,7 @@

// First configure the logger so it does not spam the console
const logger = require("../lib/logger");
logger.transports.console.level = "warning";
logger.transports.forEach((transport) => transport.level = "warning")

const models = require("../lib/models/");
const readline = require("readline-sync");

0 comments on commit 7c144ac

Please sign in to comment.