From 72a150e49fd3f585daf184e833d266d96887c5af Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Wed, 13 Mar 2024 11:28:53 +1100 Subject: [PATCH] Make controller logging scope same as key --- cmd/ftl/cmd_serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ftl/cmd_serve.go b/cmd/ftl/cmd_serve.go index eaa4df98a4..61d11fa5a7 100644 --- a/cmd/ftl/cmd_serve.go +++ b/cmd/ftl/cmd_serve.go @@ -112,7 +112,7 @@ func (s *serveCmd) Run(ctx context.Context) error { return err } - scope := fmt.Sprintf("controller%d", i) + scope := fmt.Sprintf("controller%d", config.Key.Suffix) controllerCtx := log.ContextWithLogger(ctx, logger.Scope(scope)) wg.Go(func() error {