refactor: move log

This commit is contained in:
Kevin Franklin Kim 2024-04-15 10:12:48 +02:00
parent a3ec7df9f1
commit 46c4a75a69
No known key found for this signature in database

View File

@ -327,8 +327,8 @@ func (s *Server) Healthz() error {
// Run runs the server // Run runs the server
func (s *Server) Run() { func (s *Server) Run() {
defer s.cancel()
s.l.Info("starting keel server") s.l.Info("starting keel server")
defer s.cancel()
// start services // start services
s.startService(s.services...) s.startService(s.services...)
@ -339,9 +339,7 @@ func (s *Server) Run() {
} }
// set running // set running
defer func() { defer s.running.Store(false)
s.running.Store(false)
}()
s.running.Store(true) s.running.Store(true)
// wait for shutdown // wait for shutdown