Skip to content

Commit

Permalink
Add loggin on cloud limits set (mattermost-community#3337)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdelacroix authored and Rajat-Dabade committed Jul 11, 2022
1 parent 66f7056 commit 7e72722
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 7e72722

Please # to comment.