From 25ea2314d94238a4f1d82dba0884c7cfbfd8374a Mon Sep 17 00:00:00 2001 From: Travis Ralston <travpc@gmail.com> Date: Tue, 15 Aug 2023 15:04:03 -0600 Subject: [PATCH] Log which quota is being exceeded --- pipelines/_steps/quota/check.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipelines/_steps/quota/check.go b/pipelines/_steps/quota/check.go index 8bba9b90..3b5d53ce 100644 --- a/pipelines/_steps/quota/check.go +++ b/pipelines/_steps/quota/check.go @@ -36,6 +36,7 @@ func Check(ctx rcontext.RequestContext, userId string, quotaType Type) error { if count < limit { return nil } else { + ctx.Log.Debugf("Quota %d current=%d limit=%d", int64(quotaType), count, limit) return common.ErrQuotaExceeded } } @@ -72,6 +73,7 @@ func CanUpload(ctx rcontext.RequestContext, userId string, bytes int64) error { } if (count + bytes) > limit { + ctx.Log.Debugf("Quota %s current=%d bytes=%d limit=%d", "CanUpload", count, bytes, limit) return common.ErrQuotaExceeded } -- GitLab