Add loggin on cloud limits set (#3337) (#3340)

(cherry picked from commit 06c1ae41a9)

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
This commit is contained in:
Mattermost Build 2022-07-08 17:26:26 +03:00 committed by GitHub
parent 65ef30eb1d
commit 8de46aff11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}