labstack / echox

Echo cookbook and website
https://echo.labstack.com
MIT License
408 stars 285 forks source link

Update Echo#Start error handling #184

Closed konfortes closed 3 years ago

konfortes commented 3 years ago

When encountering an error on app start, bind: address already in use for example, the app won't quit and keep waiting on the exit channel for a signal. Therefore, Logger.Info changed to Logger.Fatal. In order to not quit immediately on SIGINT another condition added: err != http.ErrServerClosed

aldas commented 3 years ago

Relates to https://github.com/labstack/echo/issues/1778#issue-807983728