From de314b1cdee61c2af3532a39946494ae3dbec1d4 Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Mon, 6 Jan 2025 13:43:37 -0800 Subject: [PATCH] One more --- cmd/tlserver/main.go | 2 +- finders/azchecker/checker.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tlserver/main.go b/cmd/tlserver/main.go index 02c62e4b..8a114f05 100644 --- a/cmd/tlserver/main.go +++ b/cmd/tlserver/main.go @@ -247,7 +247,7 @@ func (cmd *ServerCommand) Run() error { // Start server timeOut := time.Duration(cmd.Timeout) * time.Second addr := fmt.Sprintf("%s:%s", "0.0.0.0", cmd.Port) - log.Infof("Listening on: %s", addr) + log.For(ctx).Info().Msgf("Listening on: %s", addr) srv := &http.Server{ Handler: http.TimeoutHandler(root, timeOut, "timeout"), Addr: addr, diff --git a/finders/azchecker/checker.go b/finders/azchecker/checker.go index 6c84dae1..8b0b417a 100644 --- a/finders/azchecker/checker.go +++ b/finders/azchecker/checker.go @@ -129,7 +129,7 @@ func NewCheckerFromConfig(ctx context.Context, cfg CheckerConfig, db sqlx.Ext) ( for _, tk := range cfg.FGALoadTestData { ltk, found, err := ekLookup(db, tk) if !found { - log.Info().Msgf("warning, tuple entities not found in database: %s", tk.String()) + log.For(ctx).Info().Msgf("warning, tuple entities not found in database: %s", tk.String()) } if err != nil { return nil, err