Skip to content

Commit

Permalink
put http log into debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Daishan Peng authored and ibuildthecloud committed Oct 16, 2018
1 parent bffc527 commit f18af13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/dynamiclistener/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,10 @@ func (s *Server) serveHTTPS(config *v3.ListenConfig) error {
return err
}

logger := logrus.StandardLogger()
server := &http.Server{
Handler: s.Handler(),
ErrorLog: log.New(logrus.StandardLogger().Writer(), "", log.LstdFlags),
ErrorLog: log.New(logger.WriterLevel(logrus.DebugLevel), "", log.LstdFlags),
}

if s.activeConfig == nil {
Expand All @@ -412,7 +413,7 @@ func (s *Server) serveHTTPS(config *v3.ListenConfig) error {

httpServer := &http.Server{
Handler: httpRedirect(s.Handler()),
ErrorLog: log.New(logrus.StandardLogger().Writer(), "", log.LstdFlags),
ErrorLog: log.New(logger.WriterLevel(logrus.DebugLevel), "", log.LstdFlags),
}

if s.activeConfig == nil {
Expand Down

0 comments on commit f18af13

Please sign in to comment.