otterize / network-mapper

Map Kubernetes traffic: in-cluster, to the Internet, and to AWS IAM and export as text, intents, or an image
Apache License 2.0
612 stars 23 forks source link

Fix bug: initialization errors aren't reported #170

Closed NetanelBollag closed 10 months ago

NetanelBollag commented 10 months ago

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.