mirror of
https://github.com/status-im/codimd.git
synced 2025-01-12 21:34:15 +00:00
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:
parent
4eb7748adb
commit
7c144ac7a9
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user