hmpf / easydmp

MIT License
7 stars 2 forks source link

Catch HumioHTTPException #269

Open hmpf opened 1 year ago

hmpf commented 1 year ago

Not being able to reach humio should not crash the site. Raise an alert some other way and continue.

HumioHTTPException is a wrapper around requests.HTTPError, this might be a good excuse to look at exception groups and forcing a newer version of python.

hmpf commented 1 year ago

Exception groups won't be out until Python 3.11 which is scheduled to be released in October 2022 so we need to handle this the old-fashioned way for now.

hmpf commented 1 year ago

Turning off logging to Humio on the affected instances as a workaround until a new version of the logger is released.