Skip to content

Commit dec16ea

Browse files
committed
Update winston to ~3.3.3 to get rid of the circular dependency warning
This warning came from winston 0.8.x: Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency See foreversd/forever#1077
1 parent 541a824 commit dec16ea

File tree

3 files changed

+479
-80
lines changed

3 files changed

+479
-80
lines changed

lib/cliff.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,15 @@ cliff.__defineGetter__('logger', function () {
1919

2020
cliff.__defineSetter__('logger', function (val) {
2121
logger = val;
22-
23-
//
24-
// Setup winston to use the `cli` formats
25-
//
26-
if (logger.cli) {
27-
logger.cli();
28-
}
2922
});
3023

3124
//
3225
// Set the default logger for cliff.
3326
//
34-
cliff.logger = new winston.Logger({
35-
transports: [new winston.transports.Console()]
27+
cliff.logger = new winston.createLogger({
28+
transports: [new winston.transports.Console({
29+
format: winston.format.cli(),
30+
})]
3631
});
3732

3833
//

0 commit comments

Comments
 (0)