Skip to content

Commit

Permalink
Move exit log to main.
Browse files Browse the repository at this point in the history
  • Loading branch information
udhos committed Mar 9, 2024
1 parent 085d311 commit 125f71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/kubegroup-example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ func main() {
}()

shutdown(app)

log.Printf("exiting")
}

func (app *application) metricsHandler() http.Handler {
Expand Down Expand Up @@ -115,8 +117,6 @@ func shutdown(app *application) {

httpShutdown(app.serverMain)
httpShutdown(app.serverGroupCache)

log.Printf("exiting")
}

func httpShutdown(server *http.Server) {
Expand Down

0 comments on commit 125f71e

Please sign in to comment.