alexliesenfeld / health

A simple and flexible health check library for Go.
MIT License
774 stars 38 forks source link

Add panic recovery mechanism #62

Closed alexliesenfeld closed 1 year ago

alexliesenfeld commented 1 year ago

When a user created health check function panics, this health check library currently does not provide a means to recover from it automatically and continue. Instead, the application terminates. This behaviour is most likely is not wanted. Therefore, this library should provide a way to recover from panics right after the check function call (e.g.: here). The user should

revisited-contrast commented 1 year ago

Working on this, I am still learning Go but this seems pretty simple.

revisited-contrast commented 1 year ago

Whoops, looks like it's already implemented. My mistake.

AMK9978 commented 1 year ago

I'm new at Golang either. So It should be closed.