Skip to content

Commit 3d44a95

Browse files
committed
fix: new service type exported name
1 parent 852637a commit 3d44a95

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

internal/services/script/script.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func New() *Server {
2222
}
2323

2424
func (s *Server) Name() string {
25-
return definition.ServiceType_Native.String()
25+
return definition.ServiceType_Script.String()
2626
}
2727

2828
func (s *Server) Initialize(ctx context.Context, _ *plugin.ServiceOptions) error {

service.go

+2
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,8 @@ func (s *Service) stopService(ctx context.Context) {
598598
append([]loggerApi.Attribute{logger.Error(err)}, svc.Info()...)...)
599599
}
600600
}
601+
602+
s.Logger().Info(ctx, "service stopped")
601603
}
602604

603605
// stopDependentServices stops other services that are running along with the

0 commit comments

Comments
 (0)