mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 07:11:51 +08:00
Registry: Fix service shutdown mode trigger location (#28025)
This commit is contained in:
@ -179,10 +179,10 @@ func (s *Server) Run() (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
err := service.Run(s.context)
|
err := service.Run(s.context)
|
||||||
// Mark that we are in shutdown mode
|
|
||||||
// So no more services are started
|
|
||||||
s.shutdownInProgress = true
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
// Mark that we are in shutdown mode
|
||||||
|
// So no more services are started
|
||||||
|
s.shutdownInProgress = true
|
||||||
if err != context.Canceled {
|
if err != context.Canceled {
|
||||||
// Server has crashed.
|
// Server has crashed.
|
||||||
s.log.Error("Stopped "+descriptor.Name, "reason", err)
|
s.log.Error("Stopped "+descriptor.Name, "reason", err)
|
||||||
|
Reference in New Issue
Block a user