Skip to content

Commit 7c144ac

Browse files
author
Daan Sprenkels
committed
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 <[email protected]>
1 parent 4eb7748 commit 7c144ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/manage_users

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

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

0 commit comments

Comments
 (0)