Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cover the case of the AWS Outage #93

Open
2 tasks done
tuxoff opened this issue Nov 30, 2020 · 1 comment
Open
2 tasks done

[BUG] Cover the case of the AWS Outage #93

tuxoff opened this issue Nov 30, 2020 · 1 comment
Assignees
Labels

Comments

@tuxoff
Copy link

tuxoff commented Nov 30, 2020

Describe the bug
We had to experience the problem in terms of the AWS Outage us-east-1 with CloudWatch. https://www.theverge.com/2020/11/25/21719396/amazon-web-services-aws-outage-down-internet

Expected behavior
The application should still run even if AWS CloudWatch is not responding.

Please provide the steps to reproduce and if possible a minimal demo of the problem
Any instructions on how to reproduce a bug: play locally around the firewall to disable AWS connection and try to run.

Please tell about your environment:

  • PHP Version: 7.3
  • Operating system (distro): Official PHP Docker php:7.3.11-fpm-stretch
    • Web app
    • CLI app
@maxjmax
Copy link

maxjmax commented Mar 30, 2023

The approach I have used for this (which is what laravel also seems to do), is to wrap the handlers in a WhatFailureGroupHandler

    $logger->setHandlers([new WhatFailureGroupHandler($handlers)]);

which will simply ignore any exceptions from handlers, allowing it to fallback to a FileHandler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants