maxbanton / cwh

Amazon Web Services CloudWatch Logs Handler for Monolog library
MIT License
417 stars 83 forks source link

Does not work correctly with FallbackGroupHandler #85

Open tahirm opened 4 years ago

tahirm commented 4 years ago

Describe the bug Monolog FallbackGroupHandler expects handlers to throw error while they are handling the records. CloudWatch handler does not throw cloudwatch connection related errors during call to handling process. Only when everything is finished (in close()), CloudWatch handler realizes that its not able to connect etc. and then there is an exception, but it's already too late in case of FallbackGroupHandler.

Expected behavior CloudWatch should check during the handling of the record, if it's able to connect to cloudwatch service or not. If it's not able to connect, it should through proper error.

Please provide the steps to reproduce and if possible a minimal demo of the problem

Please tell about your environment:

lorenzowoodridge commented 3 years ago

I'm having the same issue. Any updates or fixes?