Fix broken manage_users after Winston upgrade

Commit c3584770 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>
This commit is contained in:
Daan Sprenkels 2019-01-10 14:01:14 +01:00
parent 4eb7748adb
commit 7c144ac7a9
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
// First configure the logger so it does not spam the console // First configure the logger so it does not spam the console
const logger = require("../lib/logger"); const logger = require("../lib/logger");
logger.transports.console.level = "warning"; logger.transports.forEach((transport) => transport.level = "warning")
const models = require("../lib/models/"); const models = require("../lib/models/");
const readline = require("readline-sync"); const readline = require("readline-sync");