Don't log errors returned by server.Shutdown. They are exceedingly unlikely, and there is nothing which can be done about them. Moving the "Listening on..." log closer to where the server is actually started reduces the chance of confusion. Also, logging the parsed listener.Addr() string instead of the provided config string provides extra debugging detail.