codeinternetapplications / monolog-stackdriver

Stackdriver handler for Monolog.
MIT License
15 stars 15 forks source link

Catch Service Exception from the oauth connection of gcloud #11

Open pthiers opened 3 years ago

pthiers commented 3 years ago

Hello, on Monday October 19, Google Cloud in the Latin American region had a problem with the Cloud Networking service. When this incident occurred, the application I am working on tried to log and it crashed all the application because it could not be logged in to google cloud. I was throwing this exception all the time, cURL error 35: Unknown SSL protocol error in connection to oauth2.googleapis.com:443 (see http://curl.haxx.se/libcurl/c/libcurl-errors.html). With this fix, you should save the error log in the system logs and not in Monolog.

PS: The status of Google Cloud from October 19, https://status.cloud.google.com/incident/cloud-networking/20010