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

feat: improving debugging capabilities #401

Closed nicholasgriffintn closed 1 year ago

nicholasgriffintn commented 1 year ago

Resolves #398, resolves #399

Description:

This PR extends the debuggers capabilities to both improve the logged messages but also add more debugging messages for when .emit is called and also a new message that sends while the user's handle message function is processing the message(s).

Type of change:

Why is this change required?:

By adding these new methods, users will be able to better debug their applications and this primarily resolves issues where users are not listening to all events and also to allow users to determine if SQS Consumer is actually doing something during message processing, when it looks like it isn't.

Code changes:

codeclimate[bot] commented 1 year ago

Code Climate has analyzed commit 2d5b3696 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 2

The test coverage on the diff in this pull request is 96.4% (80% is the threshold).

This pull request will bring the total coverage in the repository to 95.1% (0.0% change).

View more on Code Climate.