Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Change Panicf to panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Witkowski committed Dec 19, 2016
1 parent 7cdfde5 commit 3b22e3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"errors"
"net"
"net/http"
"os"
"sync"
"time"

Expand Down Expand Up @@ -246,7 +245,8 @@ func (s *Server) Supervise() {
select {
case <-done:
case <-time.After(shutdownTimeout):
log.Panicf("Timed out waiting for server to shut down. Panicking the server without cleanup.")
log.Errorf("Timed out waiting for server to shut down. Panicking the server without cleanup.")
panic("Failed server shutdown. Panic")
}
if !sd {
log.Infof("Restarting server")
Expand Down

0 comments on commit 3b22e3d

Please sign in to comment.