diff options
author | Daan Sprenkels | 2019-01-10 14:01:14 +0100 |
---|---|---|
committer | Daan Sprenkels | 2019-01-10 14:05:12 +0100 |
commit | 7c144ac7a99b806b55aed1810cfa434318f073ec (patch) | |
tree | e7e2c407c39dd2715c2a5a5010ac9690ca5e66b9 | |
parent | 4eb7748adb943005b953648c6dcad1f898600816 (diff) |
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>
-rwxr-xr-x | bin/manage_users | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/manage_users b/bin/manage_users index 8c356200..f744150d 100755 --- a/bin/manage_users +++ b/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"); |