diff options
| author | Hana (Hyang-Ah) Kim <hyangah@gmail.com> | 2023-03-08 10:57:19 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-03-08 16:37:43 +0000 |
| commit | a0d43ae455c83d630478cbb3f105b1bb4879b419 (patch) | |
| tree | 9c919e85a034b33beb4ff73e633a7bc484aa4ebf | |
| parent | 0a30e374544fc794cc1769dd04254f5be9b62c68 (diff) | |
| download | go-x-pkgsite-a0d43ae455c83d630478cbb3f105b1bb4879b419.tar.xz | |
internal/config: log quota enforcement parameters
Change-Id: I3f53d86ee7f3a3521678101654d495838738681b
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/474455
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
| -rw-r--r-- | internal/config/config.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 621f3c23..658810f0 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -505,6 +505,7 @@ func Init(ctx context.Context) (_ *Config, err error) { return nil, errors.New("HMAC secret must be at least 16 bytes") } cfg.Quota.HMACKey = hmacKey + log.Debugf(ctx, "quota enforcement enabled: qps=%d burst=%d maxentry=%d", cfg.Quota.QPS, cfg.Quota.Burst, cfg.Quota.MaxEntries) } else { log.Debugf(ctx, "quota enforcement disabled") } |
