(cherry picked from commit 06c1ae41a9
)
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
This commit is contained in:
parent
65ef30eb1d
commit
8de46aff11
1 changed files with 9 additions and 0 deletions
|
@ -79,10 +79,19 @@ func (a *App) SetCloudLimits(limits *mmModel.ProductLimits) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if oldCardLimit != cardLimit {
|
if oldCardLimit != cardLimit {
|
||||||
|
a.logger.Info(
|
||||||
|
"setting new cloud limits",
|
||||||
|
mlog.Int("oldCardLimit", oldCardLimit),
|
||||||
|
mlog.Int("cardLimit", cardLimit),
|
||||||
|
)
|
||||||
a.SetCardLimit(cardLimit)
|
a.SetCardLimit(cardLimit)
|
||||||
return a.doUpdateCardLimitTimestamp()
|
return a.doUpdateCardLimitTimestamp()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.logger.Info(
|
||||||
|
"setting new cloud limits, equivalent to the existing ones",
|
||||||
|
mlog.Int("cardLimit", cardLimit),
|
||||||
|
)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue