-
Notifications
You must be signed in to change notification settings - Fork 4
Unwanted behaviour of library logging #15
Copy link
Copy link
Open
Description
Hi,
When connection fails an MenashMQ logs to user "[RabbitMQ Client] Starting reinitialize...". This does not allow monitoring of logs with their logging libraries.
Possible solution:
Add possibility of listening to "reinitialize event" so user can decide how to log the error.
maybe for simplifying, keep the default behaviour, because many clients will forget to listen to that event.
Example syntax
import menash from 'menashmq';
menash.on('errror', (err) => logger.log(err));
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels