lazywithclass / winston-cloudwatch

Send logs to Amazon Cloudwatch using Winston.
MIT License
258 stars 104 forks source link

Messages permanently retry when the log group doesn't exist #183

Open dev-guy opened 2 years ago

dev-guy commented 2 years ago

When the ensureLogGroup option is falsy, attempting to log a message causes it to be retried indefinitely.

For example, I set up an error handler that logs to the console. After attempting to log only one message, the handler outputs this until I either stop the transport or kill the process:

ResourceNotFoundException: The specified log group does not exist

terrisgit commented 2 years ago

This might be fixed by #184