Skip to content

Commit

Permalink
chore: reduce log info output on startup (#3381)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbillman authored Nov 13, 2024
1 parent a1794b2 commit 3431255
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/cli/cmd_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ func (s *serveCmd) run(
}

if s.Provisioners > 0 {
logger.Infof("Starting FTL with %d controller(s) and %d provisioner(s)", s.Controllers, s.Provisioners)
logger.Debugf("Starting FTL with %d controller(s) and %d provisioner(s)", s.Controllers, s.Provisioners)
} else {
logger.Infof("Starting FTL with %d controller(s)", s.Controllers)
logger.Debugf("Starting FTL with %d controller(s)", s.Controllers)
}

err := observability.Init(ctx, false, "", "ftl-serve", ftl.Version, s.ObservabilityConfig)
Expand Down
4 changes: 2 additions & 2 deletions go-runtime/goplugin/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func New() *Service {
}

func (s *Service) Ping(ctx context.Context, req *connect.Request[ftlv1.PingRequest]) (*connect.Response[ftlv1.PingResponse], error) {
log.FromContext(ctx).Infof("Received Ping")
log.FromContext(ctx).Debugf("Received Ping")
return connect.NewResponse(&ftlv1.PingResponse{}), nil
}

Expand Down Expand Up @@ -308,7 +308,7 @@ func watchFiles(ctx context.Context, watcher *watch.Watcher, buildCtx buildConte
if err != nil {
return fmt.Errorf("could not watch for file changes: %w", err)
}
log.FromContext(ctx).Infof("Watching for file changes: %s", buildCtx.Config.Dir)
log.FromContext(ctx).Debugf("Watching for file changes: %s", buildCtx.Config.Dir)
watchEvents := make(chan watch.WatchEvent, 32)
watchTopic.Subscribe(watchEvents)

Expand Down
4 changes: 2 additions & 2 deletions jvm-runtime/plugin/common/jvmcommon.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func New(scaffoldFiles *zip.Reader) *Service {
}

func (s *Service) Ping(ctx context.Context, req *connect.Request[ftlv1.PingRequest]) (*connect.Response[ftlv1.PingResponse], error) {
log.FromContext(ctx).Infof("Received Ping")
log.FromContext(ctx).Debugf("Received Ping")
return connect.NewResponse(&ftlv1.PingResponse{}), nil
}

Expand Down Expand Up @@ -352,7 +352,7 @@ func watchFiles(ctx context.Context, watcher *watch.Watcher, buildCtx buildConte
if err != nil {
return fmt.Errorf("could not watch for file changes: %w", err)
}
log.FromContext(ctx).Infof("Watching for file changes: %s", buildCtx.Config.Dir)
log.FromContext(ctx).Debugf("Watching for file changes: %s", buildCtx.Config.Dir)
watchEvents := make(chan watch.WatchEvent, 32)
watchTopic.Subscribe(watchEvents)

Expand Down

0 comments on commit 3431255

Please sign in to comment.