From 06c1ae41a96a275a0f879a6f368cf16ee9cdebc6 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Fri, 8 Jul 2022 13:23:35 +0200 Subject: [PATCH] Add loggin on cloud limits set (#3337) --- server/app/cloud.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/app/cloud.go b/server/app/cloud.go index 89d78cfde..eeb27dbc7 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 }