Skip to content

Commit

Permalink
change server listen error log to info (#145)
Browse files Browse the repository at this point in the history
* change server listen error log to info

* Update server.go
  • Loading branch information
willarmiros authored Jun 17, 2021
1 parent 6cdc92d commit 77aa084
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/proxy/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ func consume(body io.ReadCloser) (io.ReadSeeker, error) {
// Serve starts server.
func (s *Server) Serve() {
log.Infof("Starting proxy http server on %s", s.Addr)
err := s.ListenAndServe()
if err != nil {
log.Errorf("unable to start the server: %v", err)
if err := s.ListenAndServe(); err != nil && err != http.ErrServerClosed {
log.Errorf("proxy http server failed to listen: %v", err)
}
}

Expand Down

0 comments on commit 77aa084

Please sign in to comment.