From b06b420bc8d0804b7f4d66e0da9acb1923dc903d Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 16 May 2024 13:50:38 +0200 Subject: [PATCH] fix(memlimit): don't use format string with slog --- memlimit/memlimit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memlimit/memlimit.go b/memlimit/memlimit.go index f7aaf07..89404b3 100644 --- a/memlimit/memlimit.go +++ b/memlimit/memlimit.go @@ -167,7 +167,7 @@ func SetGoMemLimitWithOpts(opts ...Option) (_ int64, _err error) { limit, err := setGoMemLimit(ApplyRatio(cfg.provider, ratio)) if err != nil { if errors.Is(err, ErrNoLimit) { - cfg.logger.Info("memory is not limited, skipping: %v", err) + cfg.logger.Info("memory is not limited, skipping") return 0, nil } return 0, fmt.Errorf("failed to set GOMEMLIMIT: %w", err)