From 8de46aff1189b0434facc1152bea84f95c86cedb Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Fri, 8 Jul 2022 17:26:26 +0300 Subject: [PATCH] Add loggin on cloud limits set (#3337) (#3340) (cherry picked from commit 06c1ae41a96a275a0f879a6f368cf16ee9cdebc6) Co-authored-by: Miguel de la Cruz --- server/app/cloud.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/app/cloud.go b/server/app/cloud.go index 244fdc4ec..56afbe574 100644 --- a/server/app/cloud.go +++ b/server/app/cloud.go @@ -79,10 +79,19 @@ func (a *App) SetCloudLimits(limits *mmModel.ProductLimits) error { } if oldCardLimit != cardLimit { + a.logger.Info( + "setting new cloud limits", + mlog.Int("oldCardLimit", oldCardLimit), + mlog.Int("cardLimit", cardLimit), + ) a.SetCardLimit(cardLimit) return a.doUpdateCardLimitTimestamp() } + a.logger.Info( + "setting new cloud limits, equivalent to the existing ones", + mlog.Int("cardLimit", cardLimit), + ) return nil }