Use warningf instead of warnf

This commit is contained in:
Murat Kabilov
2017-08-30 14:35:56 +02:00
committed by GitHub
parent a987ff39a7
commit 899c0bef45
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ func (s *Server) Run(stopCh <-chan struct{}, wg *sync.WaitGroup) {
defer cancel()
err := s.http.Shutdown(ctx)
if err == context.DeadlineExceeded {
s.logger.Warnf("Shutdown timeout exceeded. closing http server")
s.logger.Warningf("Shutdown timeout exceeded. closing http server")
s.http.Close()
} else if err != nil {
s.logger.Errorf("Could not shutdown http server: %v", err)