Skip to content

Commit

Permalink
Add loggin on cloud limits set (#3337) (#3340)
Browse files Browse the repository at this point in the history
(cherry picked from commit 06c1ae4)

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
  • Loading branch information
mattermost-build and mgdelacroix authored Jul 8, 2022
1 parent 65ef30e commit 8de46af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/app/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 8de46af

Please sign in to comment.