Skip to content

Commit

Permalink
fix(memlimit): don't use format string with slog (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhafer committed May 17, 2024
1 parent 31f7ab0 commit 0eced33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memlimit/memlimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0eced33

Please sign in to comment.