bbc / sqs-consumer

Build Amazon Simple Queue Service (SQS) based applications without the boilerplate
https://bbc.github.io/sqs-consumer/
Other
1.71k stars 330 forks source link

Log a debug message whenever `.emit` is called #398

Closed nicholasgriffintn closed 1 year ago

nicholasgriffintn commented 1 year ago

Currently, emitted events are only logged if the user is listening to it.

This makes debugging hard as it requires a lot of listeners to be created to listen to individual events, to make this better we should change the emit function:

https://github.com/bbc/sqs-consumer/blob/main/src/types.ts#L200

To also send a debug event so that the event is always in the debugger logs.

github-actions[bot] commented 1 year ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.