chec / cli

A command line interface for using the Chec API
https://chec.io
BSD 3-Clause "New" or "Revised" License
9 stars 7 forks source link

Possible EventEmitter memory leak detected, while watchings logs #40

Open robbieaverill opened 3 years ago

robbieaverill commented 3 years ago

I'd set up my chec logs command to watch for a while, then run some operations. I navigated into a couple of the log entries individually, then back to the list again between each. The second I went back to the list I got this error:

[2020-12-23 17:00:45]  402  rqst_16P556C38svK08771645 /v1/checkouts/chkt_4oGbZxYBrJRKKw
[2020-12-23 17:01:31]  402  rqst_16w0ud9vU6x708771691 /v1/checkouts/chkt_Mo1r6yqVAZXRe5
⠋ Listening for logs from Chec. Press "up" to navigate through the exisiting logs(node:20964) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 keypress listeners added to [ReadStream]. Use emitter.setMaxListeners() to increase limit
⠙ Listening for logs from Chec. Press "up" to navigate through the exisiting logs
robbieaverill commented 3 years ago

Reproducible by toggling through some of the options while it's watching, generally.