Skip to content

Commit

Permalink
chore(memlimit): log when system experiment is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
KimMachineGun committed Jan 9, 2024
1 parent 025606f commit 020f441
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions memlimit/memlimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func SetGoMemLimitWithOpts(opts ...Option) (_ int64, _err error) {
return 0, fmt.Errorf("failed to parse experiments: %w", err)
}
if exps.System {
cfg.logger.Println("system experiment is enabled: using system memory limit as a fallback")
cfg.provider = ApplyFallback(cfg.provider, FromSystem)
}

Expand Down

0 comments on commit 020f441

Please sign in to comment.