-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
Please tell us about your environment:
winston version? 3.2.1
winston@2
winston@3
node -v outputs: v14.15.4
Operating System? (Windows, macOS, or Linux) macOS
Language? (all | TypeScript X.X | ES6/7 | ES5 | Dart) Typescript 4.3.2
What is the problem?
The rejections property (set at runtime
Line 111 in 2625f60
| this.rejections = new RejectionHandler(this); |
What do you expect to happen instead?
I'd expect the rejections property to be defined as rejections: ExceptionHandler;rejections: RejectionHandler;.
Other information
I ran into this issue while trying to ensure winston's uncaught exceptions and unhandled rejection handlers were the first listeners for those events. Apparently Google cloud function's framework sets listeners for those that call process.exit()... I'd like my errors to be logged nicely, by winston, before the cloud function framework blows up. After writing some code to ensure wintson's listeners were first, tsc let me know that rejections wasn't defined on Logger!
sergey-bekylebuildsstuff
Metadata
Metadata
Assignees
Labels
No labels