mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 14:01:46 +02:00
Use warningf instead of warnf
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user