Until this PR, many errors during init where logged as error and were followed by a call to os.Exit. Since the bugsnag-logrus hook report errors asynchronously, in many the process was killed before the error was sent.
This PR turn all errors on init to panic exception, since the panic handler report the error synchronously.
Description
Until this PR, many errors during init where logged as error and were followed by a call to
os.Exit
. Since the bugsnag-logrus hook report errors asynchronously, in many the process was killed before the error was sent.This PR turn all errors on init to
panic
exception, since the panic handler report the error synchronously.