Skip to content

Commit

Permalink
fix(repositories): service name (#5165)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamin committed May 6, 2020
1 parent f59320f commit 5cc5308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions engine/cmd_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ See $ engine config command for more details.
sdk.Exit("Unable to init service %s: %v", s.arg, err)
}

log.Info(ctx, "%s> %s configuration applied", s.arg, s.service.Name())

if srv, ok := s.service.(service.BeforeStart); ok {
if err := srv.BeforeStart(ctx); err != nil {
sdk.Exit("Unable to start service %s: %v", s.arg, err)
Expand Down
1 change: 0 additions & 1 deletion engine/repositories/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func (s *Service) ApplyConfiguration(config interface{}) error {
s.ServiceType = services.TypeRepositories
s.HTTPURL = s.Cfg.URL
s.MaxHeartbeatFailures = s.Cfg.API.MaxHeartbeatFailures
s.ServiceName = "cds-repositories"

return nil
}
Expand Down

0 comments on commit 5cc5308

Please sign in to comment.