Skip to content

Commit

Permalink
fix(serve): Confusing message (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
disq authored Jul 1, 2023
1 parent 76bfc85 commit ee873c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions serve/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,15 @@ func (s *PluginServe) newCmdPluginServe() *cobra.Command {
go func() {
select {
case sig := <-c:
logger.Info().Str("address", listener.Addr().String()).Str("signal", sig.String()).Msg("Got stop signal. Source plugin server shutting down")
logger.Info().Str("address", listener.Addr().String()).Str("signal", sig.String()).Msg("Got stop signal. Plugin server shutting down")
grpcServer.Stop()
case <-ctx.Done():
logger.Info().Str("address", listener.Addr().String()).Msg("Context cancelled. Source plugin server shutting down")
logger.Info().Str("address", listener.Addr().String()).Msg("Context cancelled. Plugin server shutting down")
grpcServer.Stop()
}
}()

logger.Info().Str("address", listener.Addr().String()).Msg("Source plugin server listening")
logger.Info().Str("address", listener.Addr().String()).Msg("Plugin server listening")
if err := grpcServer.Serve(listener); err != nil {
return fmt.Errorf("failed to serve: %w", err)
}
Expand Down

0 comments on commit ee873c9

Please sign in to comment.